project_points_line

compas.geometry.project_points_line(points, line)[source]

Project points onto a line.

Parameters
  • points (sequence[[float, float, float] | Point]) – XYZ coordinates of the points.

  • line ([point, point] | Line) – Two points defining the projection line.

Returns

list[[float, float, float]] – XYZ coordinates of the projected points.

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.