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

Last Updated: 16 December, 2025