Line.closest_point
- Line.closest_point(point, return_parameter=False)[source]
Compute the closest point on the line to a given point.
- Parameters:
- point
compas.geometry.Point The point.
- return_parameterbool, optional
Return the parameter of the closest point on the line. Default is
False.
- point
- Returns:
compas.geometry.PointThe closest point on the line.
- float
The parameter of the closest point on the line. Only if
return_parameterisTrue.