matrix_from_parallel_projection
- compas.geometry.matrix_from_parallel_projection(plane, direction)[source]
Returns an parallel projection matrix to project onto a plane.
- Parameters
plane (compas.geometry.Plane or (point, normal)) – The plane to project onto.
direction (list of float) – Direction of the projection.
Examples
>>> point = [0, 0, 0] >>> normal = [0, 0, 1] >>> plane = (point, normal) >>> direction = [1, 1, 1] >>> P = matrix_from_parallel_projection(plane, direction)