matrix_from_orthogonal_projection

compas.geometry.matrix_from_orthogonal_projection(plane)[source]

Returns an orthogonal projection matrix to project onto a plane.

Parameters

plane (compas.geometry.Plane or (point, normal)) – The plane to project onto.

Returns

list of list of float – The 4x4 transformation matrix representing an orthogonal projection.

Examples

>>> point = [0, 0, 0]
>>> normal = [0, 0, 1]
>>> plane = (point, normal)
>>> P = matrix_from_orthogonal_projection(plane)