fromJSON MethodStatic

Create an Angle from a JSON object

fromJSON(json?: AngleProps, defaultValRadians?: number): Angle

@returns a new Angle

Parameter Type Description
json AngleProps object from JSON.parse. If a number, value is in DEGREES
defaultValRadians number if json is undefined, default value in radians.

Returns - Angle

a new Angle

Defined in

Last Updated: 17 December, 2024