Trigonometry
Trigonometric functions and unit conversions via SciMathJS.
API Reference
toRadians / toDegrees
Convert between degrees and radians.
Signatures:
typescript
function toRadians(degrees: number): number
function toDegrees(radians: number): numbersinc
Normalized sinc function.
Formula:
Signature:
typescript
function sinc(x: number): numberhypot
Calculates the hypotenuse of a right-angled triangle.
Formula:
Signature:
typescript
function hypot(a: number, b: number): numberwrapAngle
Wraps an angle to the range .
Signature:
typescript
function wrapAngle(angle: number): number