project_point_line_xy
- compas.geometry.project_point_line_xy(point, line)[source]
Project a point onto a line in the XY plane.
- Parameters:
- point[float, float, float] |
compas.geometry.Point
XY(Z) coordinates of the point.
- line[point, point] |
compas.geometry.Line
Two points defining the projection line.
- point[float, float, float] |
- Returns:
- [float, float, float]
XYZ coordinates of the projected point, with Z=0.
Notes
For more info, see [1].
References
[1]Wiki Books. Linear Algebra/Orthogonal Projection Onto a Line. Available at: https://en.wikibooks.org/wiki/Linear_Algebra/Orthogonal_Projection_Onto_a_Line.