QuaternionExt ClassQuaternion extensions.
Inheritance Hierarchy
System.Object
UltimateXR.Extensions.Unity.Math.QuaternionExt
Namespace: UltimateXR.Extensions.Unity.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static class QuaternionExt
The QuaternionExt type exposes the following members.
Properties
Name | Description | |
---|---|---|
NaN | Represents a NaN Quaternion. |
Methods
Name | Description | |
---|---|---|
ApplyAlignment | Applies the transformation to make a rotation defined by sourceRotation rotate towards targetRotation. | |
Average | Computes the average quaternion from a list. | |
Divide | Divides two quaternions component by component, checking for divisions by 0. Divisions by 0 have a result of 0. | |
Inverse | Computes the inverse of a quaternion component by component (1 / value), checking for divisions by 0. Divisions by 0 have a result of 0. | |
IsInfinity | Checks whether the given Quaternion has any infinity value. | |
IsNaN | Checks whether the given Quaternion has any NaN value. | |
IsValid | Checks whether the given Quaternion contains valid data. | |
IsZero | Checks whether the given Quaternion has any 0 value. | |
Multiply | Multiplies two quaternions component by component. | |
Parse | Parses a Quaternion. | |
ParseAsync | Parses a Quaternion asynchronously. | |
ToQuaternion | Creates a Quaternion from a float array. If the array does not contain enough elements, the missing components will contain NaN. | |
ToVector4 | Transforms a Quaternion to a Vector4 component by component. | |
TryParse | Tries to parse a Quaternion. |