setFromJSON Method
Set this AngleSweep from various sources:
- if json is undefined, a full-circle sweep is returned.
- If json is an AngleSweep object, it is cloned
- If json is an array of 2 numbers, those numbers are start and end angles in degrees.
- If json.degreesis an array of 2 numbers, those numbers are start and end angles in degrees.
- If json.radiansis an array of 2 numbers, those numbers are start and end angles in radians.
- Otherwise, a full-circle sweep is returned.
setFromJSON(json?: any): void
| Parameter | Type | Description | 
|---|---|---|
| json | any | 
Returns - void
Defined in
- geometry3d/AngleSweep.ts Line 504
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.