Quaternion
A Sceneform quaternion class for floats.
Quaternion operations are Hamiltonian using the right-hand-rule convention.
Constructors
Properties
Functions
Link copied to clipboard
Adds two Quaternion's without normalizing
Link copied to clipboard
Get a new Quaternion using an axis/angle to define the rotation
Link copied to clipboard
Returns true if the other object is a Quaternion and the dot product is 1.0 +/- a tolerance.
Compare two Quaternions Tests for equality by calculating the dot product of lhs and rhs.
Link copied to clipboard
Get a new Quaternion using eulerAngles to define the rotation.
Link copied to clipboard
Link copied to clipboard
Get a Quaternion set to identity
Link copied to clipboard
Link copied to clipboard
Get a Quaternion with the opposite rotation
Link copied to clipboard
Get a new Quaternion representing a rotation towards a specified forward direction.
Link copied to clipboard
Create a Quaternion by combining two Quaternions multiply(lhs, rhs) is equivalent to performing the rhs rotation then lhs rotation Ordering is important for this operation.
Link copied to clipboard
Flips the sign of the Quaternion, but represents the same rotation.
Link copied to clipboard
Get a Quaternion with a matching rotation but scaled to unit length.
Link copied to clipboard
Rotates a Vector3 by a Quaternion
Link copied to clipboard
Get a new Quaternion representing the rotation from one vector to another.
Link copied to clipboard
Link copied to clipboard
Set the Quaternion to identity
Link copied to clipboard
Link copied to clipboard