Class QuaternionExtensions
Extension methods for Unity's Quaternion struct.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public static class QuaternionExtensions
Methods
AlignedEnough(Quaternion, Quaternion, Single)
Determines if the angle between two quaternions is within a given tolerance.
Declaration
public static bool AlignedEnough(Quaternion q1, Quaternion q2, float angleTolerance)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | q1 | The first quaternion. |
Quaternion | q2 | The second quaternion. |
Single | angleTolerance | The maximum angle that will cause this to return true. |
Returns
Type | Description |
---|---|
Boolean | True if the quaternions are aligned within the tolerance, false otherwise. |
IsValidRotation(Quaternion)
Declaration
public static bool IsValidRotation(this Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | rotation |
Returns
Type | Description |
---|---|
Boolean |
IsValidRotation(Quaternion)
Declaration
public static bool IsValidRotation(this Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | rotation |
Returns
Type | Description |
---|---|
Boolean |