The LeapQuaternion struct represents a rotation in three-dimensional space. More...
Inherits IEquatable< LeapQuaternion >.
Public Member Functions | |
| bool | Equals (LeapQuaternion v) |
| Compare LeapQuaternion equality component-wise. More... | |
| bool | IsValid () |
| Returns true if all of the quaternion's components are finite. More... | |
| LeapQuaternion (float x, float y, float z, float w) | |
| Creates a new LeapQuaternion with the specified component values. More... | |
| LeapQuaternion (LeapQuaternion quaternion) | |
| Copies the specified LeapQuaternion. More... | |
| LeapQuaternion (LeapInternal.LEAP_QUATERNION quaternion) | |
| Copies the specified LEAP_QUATERNION. More... | |
| LeapQuaternion | Multiply (LeapQuaternion rhs) |
| Concatenates the rotation described by this quaternion with the one provided and returns the result. More... | |
| override string | ToString () |
| Returns a string containing this quaternion in a human readable format: (x, y, z). More... | |
Public Attributes | |
| float | w |
| The w component. More... | |
| float | x |
| The x component. More... | |
| float | y |
| The y component. More... | |
| float | z |
| The z component. More... | |
Static Public Attributes | |
| static readonly LeapQuaternion | Identity = new LeapQuaternion(0, 0, 0, 1) |
| The identity quaternion. More... | |
Properties | |
| float | Magnitude [get] |
| The magnitude, or length, of this quaternion. More... | |
| float | MagnitudeSquared [get] |
| The square of the magnitude, or length, of this quaternion. More... | |
| LeapQuaternion | Normalized [get] |
| A normalized copy of this quaternion. More... | |
The LeapQuaternion struct represents a rotation in three-dimensional space.
| LeapQuaternion | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | w | ||
| ) |
Creates a new LeapQuaternion with the specified component values.
| x | the i-basis component |
| y | the j-basis component |
| z | the k-basis component |
| w | the scalar component |
| LeapQuaternion | ( | LeapQuaternion | quaternion | ) |
| LeapQuaternion | ( | LeapInternal.LEAP_QUATERNION | quaternion | ) |
Copies the specified LEAP_QUATERNION.
| quaternion | the LEAP_QUATERNION struct to copy. |
| bool Equals | ( | LeapQuaternion | v | ) |
Compare LeapQuaternion equality component-wise.
| bool IsValid | ( | ) |
Returns true if all of the quaternion's components are finite.
If any component is NaN or infinite, then this returns false.
| LeapQuaternion Multiply | ( | LeapQuaternion | rhs | ) |
Concatenates the rotation described by this quaternion with the one provided and returns the result.
| override string ToString | ( | ) |
Returns a string containing this quaternion in a human readable format: (x, y, z).
|
static |
The identity quaternion.
| float w |
The w component.
| float x |
The x component.
| float y |
The y component.
| float z |
The z component.
|
get |
The magnitude, or length, of this quaternion.
|
get |
The square of the magnitude, or length, of this quaternion.
|
get |
A normalized copy of this quaternion.
C# and Unity