Class AngleUtility
Provides support for angle calculations and conversions.
Methods
GetStandardAngle(float angle)
Converts this angle from the range [-∞, +∞] to the range [0, 360].
public static float GetStandardAngle(float angle)
AngleDirection(float angle, float targetAngle)
Determine the relative direction of clockwise angle angle [0, 360] and clockwise angle targetAngle [0, 360].
public static float AngleDirection(float angle, float targetAngle)
DeltaAngle(float angle, float targetAngle)
Get the shortest angle from angle [0, 360] to targetAngle [0, 360].
public static float DeltaAngle(float angle, float targetAngle)
FullAngleToSignedAngle(float fullAngle)
Converts a full angle [0, 360] to a signed angle [-180, 180].
public static float FullAngleToSignedAngle(float fullAngle)
SignedAngleToFullAngle(float signedAngle)
Converts a signed angle [-180, 180] to full angle [0, 360].
public static float SignedAngleToFullAngle(float signedAngle)
SmoothDamp(Quaternion current, Quaternion target, float currentVelocity, float smoothTime)
Performs smooth angular damping between rotations.
public static Quaternion SmoothDamp(Quaternion current, Quaternion target, float currentVelocity, float smoothTime)