Method ProjectOntoPlane
ProjectOntoPlane(Vector3, Vector3)
Returns a non-normalized projection of the supplied vector onto a plane as described by its normal
선언
public static Vector3 ProjectOntoPlane(this Vector3 vector, Vector3 planeNormal)
파라미터
타입 | 이름 | 설명 |
---|---|---|
Vector3 | vector | |
Vector3 | planeNormal | The normal that defines the plane. Must have a length of 1. |
반환
타입 | 설명 |
---|---|
Vector3 | The component of the vector that lies in the plane |