Cinemachine
![]() | UnityVectorExtensions Class |
Extensions to the Vector3 class, used by Cinemachine

Namespace: Cinemachine.Utility
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)

public static class UnityVectorExtensions
Cinemachine.Utility.UnityVectorExtensions = function(); Type.createClass( 'Cinemachine.Utility.UnityVectorExtensions');
The UnityVectorExtensions type exposes the following members.

Name | Description | |
---|---|---|
![]() ![]() | AlmostZero | Is the vector within Epsilon of zero length? |
![]() ![]() | ClosestPointOnSegment(Vector2, Vector2, Vector2) |
Get the closest point on a line segment.
|
![]() ![]() | ClosestPointOnSegment(Vector3, Vector3, Vector3) |
Get the closest point on a line segment.
|
![]() ![]() | ProjectOntoPlane |
Returns a non-normalized projection of the supplied vector onto a plane
as described by its normal
|
![]() ![]() | SignedAngle | Get a signed angle between two vectors |
![]() ![]() | SlerpWithReferenceUp | This is a slerp that mimics a camera operator's movement in that
it chooses a path that avoids the lower hemisphere, as defined by
the up param |

