Skip to content

@technobuddha > library > Geometry > Line Segment

Function: toLineSegment()

ts
function toLineSegment(pointA: Cartesian, pointB: Cartesian): LineSegment;

Defined in: to-line-segment.ts:11

Converts two Cartesian points into a LineSegment object.

Parameters

ParameterTypeDescription
pointACartesianThe starting point of the line segment.
pointBCartesianThe ending point of the line segment.

Returns

LineSegment

A LineSegment object representing the line from pointA to pointB.