@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
| Parameter | Type | Description |
|---|---|---|
pointA | Cartesian | The starting point of the line segment. |
pointB | Cartesian | The ending point of the line segment. |
Returns
A LineSegment object representing the line from pointA to pointB.