createXY MethodStatic
Create a linestring from XAndY points, with a specified z applied to all.
createXY(points: Readonly<WritableXAndY>[], z: number, enforceClosure: boolean = false): LineString3d
| Parameter | Type | Description |
|---|---|---|
| points | Readonly<WritableXAndY>[] | array of 2D points. |
| z | number | the z-coordinate to apply to all points. |
| enforceClosure | boolean | set the coordinates of the last point to those of the first point if both points are within smallMetricDistance. |
Returns - LineString3d
Defined in
- curve/LineString3d.ts Line 189
Last Updated: 16 December, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.