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 133
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.