UnityVectorExtensions Class

Cinemachine

UnityVectorExtensions Class

Extensions to the Vector3 class, used by Cinemachine
Inheritance Hierarchy
SystemObject  Cinemachine.UtilityUnityVectorExtensions

Namespace:  Cinemachine.Utility
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static class UnityVectorExtensions
Cinemachine.Utility.UnityVectorExtensions = function();

Type.createClass(
	'Cinemachine.Utility.UnityVectorExtensions');

The UnityVectorExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAlmostZero
Is the vector within Epsilon of zero length?
Public methodStatic memberClosestPointOnSegment(Vector2, Vector2, Vector2)
Get the closest point on a line segment.
Public methodStatic memberClosestPointOnSegment(Vector3, Vector3, Vector3)
Get the closest point on a line segment.
Public methodStatic memberProjectOntoPlane
Returns a non-normalized projection of the supplied vector onto a plane as described by its normal
Public methodStatic memberSignedAngle
Get a signed angle between two vectors
Public methodStatic memberSlerpWithReferenceUp
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
Top
Fields
  NameDescription
Public fieldStatic memberEpsilon
A useful Epsilon
Top
See Also