API Referenceatlasatlas/units
Radians
Angle stored in radians, with degree conversion and arithmetic returning new values.
Module: atlas/units
Angle stored in radians, with degree conversion and arithmetic returning new values.
Declaration
export class Radians { ... }Constructors
constructor(value: number);Properties
value
value: number;Methods
add
Returns a new value by adding the operand.
add(other: Radians): Radians;subtract
Returns a new value by subtracting the operand.
subtract(other: Radians): Radians;multiply
Returns a new value by multiplying by the operand.
multiply(other: Radians | number): Radians;divide
Returns a new value by dividing by the operand.
divide(other: Radians | number): Radians;toNumber
toNumber(): number;fromDegrees
static fromDegrees(degrees: number): Radians;toDegrees
toDegrees(): number;