setFromJSON Method
Construct a line from either of these json forms:
- object with named start and end:
{startPoint: pointValue, endPoint: pointValue}
- array of two point values:
[pointValue, pointValue]
The point values are any values accepted by the Point3d method setFromJSON.
setFromJSON(json?: any): void
Parameter | Type | Description |
---|---|---|
json | any | data to parse. |
Returns - void
Defined in
- curve/LineSegment3d.ts Line 380
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.