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

NameDescription
Public propertyStatic memberNaN Represents a NaN Quaternion.

Methods

NameDescription
Public methodStatic memberApplyAlignment Applies the transformation to make a rotation defined by sourceRotation rotate towards targetRotation.
Public methodStatic memberAverage Computes the average quaternion from a list.
Public methodStatic memberDivide Divides two quaternions component by component, checking for divisions by 0. Divisions by 0 have a result of 0.
Public methodStatic memberInverse Computes the inverse of a quaternion component by component (1 / value), checking for divisions by 0. Divisions by 0 have a result of 0.
Public methodStatic memberIsInfinity Checks whether the given Quaternion has any infinity value.
Public methodStatic memberIsNaN Checks whether the given Quaternion has any NaN value.
Public methodStatic memberIsValid Checks whether the given Quaternion contains valid data.
Public methodStatic memberIsZero Checks whether the given Quaternion has any 0 value.
Public methodStatic memberMultiply Multiplies two quaternions component by component.
Public methodStatic memberParse Parses a Quaternion.
Public methodStatic memberParseAsync Parses a Quaternion asynchronously.
Public methodStatic memberToQuaternion Creates a Quaternion from a float array. If the array does not contain enough elements, the missing components will contain NaN.
Public methodStatic memberToVector4 Transforms a Quaternion to a Vector4 component by component.
Public methodStatic memberTryParse Tries to parse a Quaternion.

See Also

Reference

UltimateXR.Extensions.Unity.Math Namespace