dropPointOnLine ( p As Point, _
startPoint As Point, _
endPoint As Point, _
Optional useSegment? As Boolean = False ) As Point | Argument | Type | Description |
|---|---|---|
| p | Point | The point to drop. |
| startPoint | Point | The start point of the line. |
| endPoint | Point | The endpoint of the line. |
| useSegment? | Boolean | Optional; when True the point is dropped on the line segment defined by startPoint and endPoint, even if the resulting point is beyond the start or end point; default is False. |
Intent >dropPointOnLine(point(1,1,1), point(2,0,0), point(3,0,0), useSegment? := True) --> Point_(2.0, 0.0, 0.0, WorldFrame())