closest_point_on_segment
-
compas_singular.geometry.closest_point_on_segment(a, b, c)[source] Closest point on segment. Different from projection because an extremity is yielded if the projection is on the line but outside the segment.
- Parameters
a (list) – First line point coordinates.
b (list) – Second line point coordinates.
c (list) – Point coordinates.
- Returns
tuple – The projected point coordinates and the distance from the input point.