The LeapTransform class represents a transform in three dimensional space.
More...
The LeapTransform class represents a transform in three dimensional space.
Note that the LeapTransform class replaces the Leap.Matrix class.
- Since
- 3.1.2
Constructs a new transform from the specified translation and rotation.
- Parameters
-
translation | the translation vector. |
rotation | the rotation quaternion. |
- Since
- 3.1.2
Constructs a new transform from the specified translation, rotation and scale.
- Parameters
-
translation | the translation vector. |
rotation | the rotation quaternion. |
scale | the scale vector. |
- Since
- 3.1.2
Mirrors this transform's rotation and scale across the x-axis.
Translation is not affected.
- Since
- 3.1.2
Mirrors this transform's rotation and scale across the z-axis.
Translation is not affected.
- Since
- 3.1.2
Transforms the specified direction vector, applying rotation only.
- Parameters
-
direction | the direction vector to transform. |
- Returns
- the new direction vector.
- Since
- 3.1.2
Transforms the specified position vector, applying translation, rotation and scale.
- Parameters
-
point | the position vector to transform. |
- Returns
- the new position vector.
- Since
- 3.1.2
Transforms the specified quaternion.
Multiplies the quaternion representing the rotational part of this transform by the specified quaternion.
Important: Modifying the basis vectors of this transform directly leaves the underlying quaternion in an indeterminate state. Neither this function nor the LeapTransform.rotation quaternion can be used after the basis vectors are set.
- Parameters
-
rhs | the quaternion to transform. |
- Returns
- the new quaternion.
- Since
- 3.1.2
Transforms the specified velocity vector, applying rotation and scale.
- Parameters
-
point | the velocity vector to transform. |
- Returns
- the new velocity vector.
- Since
- 3.1.2
The identity transform.
- Since
- 3.1.2
The rotational component of the transform.
Important: Modifying the basis vectors of this transform directly leaves the underlying quaternion in an indeterminate state. This rotation quaternion cannot be accessed after the basis vectors are modified directly.
- Since
- 3.1.2
The scale factors of the transform.
Scale is kept separate from translation.
- Since
- 3.1.2
The translation component of the transform.
- Since
- 3.1.2
The x-basis of the transform.
Important: Modifying the basis vectors of this transform directly leaves the underlying quaternion in an indeterminate state. Neither the TransformQuaternion() function nor the LeapTransform.rotation quaternion can be used after the basis vectors are set.
- Since
- 3.1.2
The y-basis of the transform.
Important: Modifying the basis vectors of this transform directly leaves the underlying quaternion in an indeterminate state. Neither the TransformQuaternion() function nor the LeapTransform.rotation quaternion can be used after the basis vectors are set.
- Since
- 3.1.2
The z-basis of the transform.
Important: Modifying the basis vectors of this transform directly leaves the underlying quaternion in an indeterminate state. Neither the TransformQuaternion() function nor the LeapTransform.rotation quaternion can be used after the basis vectors are set.
- Since
- 3.1.2