Clones the instance.
Returns a value that represents the current rotation in Euler angles.
Compares the quaternion to v, and returns true if they are approximately equal.
Updates the quaternion's value to the identity rotation. This is the state of having no rotation.
Inverts the quaternion's value.
Returns the quaternion's length when viewed as a 4-dimensional vector.
Returns the quaternion's squared length when viewed as a 4-dimensional vector.
Normalizes the quaternion's value.
Sets the quaternion's component values to those specified in x, y, z, and w.
Updates the quaternion to a value that represents a rotation of degree degrees around the axis.
Updates the quaternion to a value that represents a rotation in Euler angles. Axes are applied in the order of ZXY.
Calculates the spherical linear interpolation (slerp) between the current value and v, using a as the interpolation factor, then updates the quaternion's value to the result.
The interpolation factor, specified as a number between [0, 1].
Gets the axis and angle values that represent the current rotation.
StaticaxisGets the quaternion that represents a rotation of degree degrees around the axis.
StaticeulerGets the quaternion by the value that represents a rotation in Euler angles. Axes are applied in the order of ZXY.
Gets the quaternion by the value that represents a rotation in Euler angles. Axes are applied in the order of ZXY.
StaticfromGets a Quaternion that changes orientation from from direction to another direction to.
StaticlookCreates a Quaternion looking towards forward direction with the upward direction being up.
up is optional, and if omitted, it will be treated as if new Vector3(0, 1, 0) was specified.
A quaternion.
Methods that manipulate values are generally destructive. To preserve the original values, explicitly call
clone()to create a duplicate instance.