UnityVectorExtensions.ProjectOntoPlane Method

Cinemachine

UnityVectorExtensionsProjectOntoPlane Method

Returns a non-normalized projection of the supplied vector onto a plane as described by its normal

Namespace:  Cinemachine.Utility
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static Vector3 ProjectOntoPlane(
	this Vector3 vector,
	Vector3 planeNormal
)
Cinemachine.Utility.UnityVectorExtensions.ProjectOntoPlane = function(vector, planeNormal);

Parameters

vector
Type: Vector3

[Missing <param name="vector"/> documentation for "M:Cinemachine.Utility.UnityVectorExtensions.ProjectOntoPlane(UnityEngine.Vector3,UnityEngine.Vector3)"]

planeNormal
Type: Vector3
The normal that defines the plane. Cannot be zero-length.

Return Value

Type: Vector3
The component of the vector that lies in the plane

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector3. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also