closest_point_on_segment
- compas.geometry.closest_point_on_segment(point, segment)[source]
Computes closest point on line segment (p1, p2) to test point.
- Parameters:
- point[float, float, float] |
compas.geometry.Point
XYZ coordinates.
- segment[point, point] |
compas.geometry.Line
Two points defining the segment.
- point[float, float, float] |
- Returns:
- [float, float, float]
XYZ coordinates of closest point.
Examples
>>>