createXYXY MethodStatic

create a LineSegment3d from xy coordinates of start and end, with common z.

createXYXY(x0: number, y0: number, x1: number, y1: number, z: number = 0, result?: LineSegment3d): LineSegment3d

Parameter Type Description
x0 number start point x coordinate.
y0 number start point y coordinate.
x1 number end point x coordinate.
y1 number end point y coordinate.
z number z coordinate to use for both points.
result LineSegment3d optional existing LineSegment to be reinitialized.

Returns - LineSegment3d

Defined in

Last Updated: 13 June, 2024