matrix_from_orthogonal_projection

compas.geometry.matrix_from_orthogonal_projection(plane)[source]

Returns an orthogonal projection matrix to project onto a plane.

Parameters

plane ([point, normal] | compas.geometry.Plane) – The plane to project onto.

Returns

list[list[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)