setFromJSON Method
Set an Angle from a JSON object
- A simple number is considered as degrees.
- specified
json.degrees
orjson._degrees
is degree value. - specified
son.radians
orjson._radians
is radians value.
setFromJSON(json?: AngleProps, defaultValRadians?: number): void
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 - void
Defined in
- geometry3d/Angle.ts Line 124
Last Updated: 20 June, 2023