closest_point_on_polyline
- compas.geometry.closest_point_on_polyline(point, polyline)[source]
Find the closest point on a polyline to a given point.
- Parameters:
- point[float, float, float] |
compas.geometry.Point
XYZ coordinates of a 2D or 3D point (Z will be ignored).
- polylinesequence[point] |
compas.geometry.Polyline
A sequence of XYZ coordinates representing the locations of the corners of a polyline. The vertices are assumed to be in order.
- point[float, float, float] |
- Returns:
- [float, float, float]
XYZ coordinates of closest point.