closest_point_on_line

compas_singular.geometry.closest_point_on_line(a, b, c)[source]

Closest point on line. Same as projection.

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.