w component.
x component.
y component.
z component.
clone the current Quat
Check whether the quaternion approximately equals another one
Comparative quaternion
The error allowed. It`s should be a non-negative number.
Returns true' when the components of the two quaternions are equal within the specified error range; otherwise, returns
false'.
Calculates the length of the quaternion
Calculates the squared length of the quaternion
Calculate the linear interpolation result between this quaternion and another one with given ratio
The target quaternion
The interpolation coefficient. The range is [0,1].
Set values with another quaternion
Specified quaternion
this
Set the value of each component of the current quaternion
this
Calculates the spherical interpolation result between this quaternion and another one with the given ratio
The target quaternion
The interpolation coefficient. The range is [0,1].
Check whether the current quaternion strictly equals other quaternion
Comparative quaternion
Returns true' when the components of the two quaternions are equal within the specified error range; otherwise, returns
false'.
Convert the current object to a string. The base version of this method will returns an empty string.
The string representation of the current object
Calculates the w component with xyz components, considering the given quaternion normalized
Conjugating a quaternion, it's equivalent to the inverse of the unit quaternion, but more efficient
Quaternion dot product (scalar product)
Calculates the quaternion with given 2D angle (0, 0, z).
Output quaternion
Angle to rotate around Z axis in degrees.
Calculates the quaternion with Euler angles, the rotation order is YZX
Calculates the quaternion with the up direction and the direction of the viewport
The view direction, it`s must be normalized.
The view up direction, it`s must be normalized, default value is (0, 1, 0).
Sets the out quaternion to an identity quaternion
Calculates the length of the quaternion
Calculates the squared length of the quaternion
Element by element linear interpolation: A + t * (B - A)
Quaternion scalar multiplication and save the results to out quaternion
Normalize the given quaternion
Sets the out quaternion to represent a radian rotation around x axis
radius of rotation
Sets the out quaternion to represent a radian rotation around y axis
radius of rotation
Sets the out quaternion to represent a radian rotation around z axis
radius of rotation
Quaternion multiplication and addition: A + B * scale
Sets the out quaternion with values of each component
Spherical quaternion interpolation with two control points
Converts quaternion to an array
Array Start Offset
Generated using TypeDoc
quaternion