Method ProjectPointOnPlane
ProjectPointOnPlane(Vector3, Vector3, Vector3)
Returns the point on a plane closest to a specified point.
Declaration
public static Vector3 ProjectPointOnPlane(Vector3 planeNormal, Vector3 planePoint, Vector3 point)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | planeNormal | The plane normal. (It does not need to be normalized.) |
Vector3 | planePoint | Any point on the plane. |
Vector3 | point | The point to test. |
Returns
Type | Description |
---|---|
Vector3 | The point on the plane closest to |