getPathSegments
Callable
Parameters
points: Point2D[]
Ordered path points.
isClosed: boolean = false
Whether to connect the last point back to the first.
Returns LineSegment2D[]
Adjacent segment pairs, or an empty array for fewer than two points.
Ordered path points.
Whether to connect the last point back to the first.
Adjacent segment pairs, or an empty array for fewer than two points.
Converts a point path into adjacent line segments.