Method ProjectOnPlane
ProjectOnPlane(Vector3, Vector3)
Projects a vector onto a plane defined by a normal orthogonal to the plane.
Declaration
public static Vector3 ProjectOnPlane(Vector3 vector, Vector3 planeNormal)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | vector | The vector to project. |
| Vector3 | planeNormal | Normal of the plane, does not assume it is normalized. |
Returns
| Type | Description |
|---|---|
| Vector3 | The Projection of vector onto plane. |