closest_point_on_line
-
compas.geometry.
closest_point_on_line
(point, line)[source] Computes closest point on line to a given point.
- Parameters
point (sequence of float) – XYZ coordinates.
line (tuple) – Two points defining the line.
- Returns
list – XYZ coordinates of closest point.
Examples
>>>
See also
basic.transformations.project_point_line()