setFromJSON Method
Set an Angle from a JSON object
- A simple number is considered as degrees.
- specified json.degreesorjson._degreesis degree value.
- specified son.radiansorjson._radiansis 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 133
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.