Readonly
isCopies values of q to this quaternion.
Sets this quaternion's x, y, z and w value from the provided array or array-like.
the source array or array-like.
Optional
offset: number(optional) offset into the array. Default is 0.
Sets x, y, z, w properties of this quaternion from the attribute.
the source attribute.
index in the attribute.
Sets this quaternion to a x b Adapted from http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/code/index.htm.
Sets this quaternion from rotation specified by axis and angle. Adapted from http://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToQuaternion/index.htm. Axis have to be normalized, angle is in radians.
Sets this quaternion from rotation component of m. Adapted from http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm.
Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.
The created or provided array.
Optional
array: number[](optional) array to store the quaternion to. If this is not provided, a new array will be created.
Optional
offset: number(optional) optional offset into the array.
Copies x, y, z and w into the provided array-like.
The provided array-like.
array-like to store the quaternion to.
Optional
offset: number(optional) optional offset into the array.
Convert the quaternion to euler angles
Converted euler
Optional
order: EulerOrderEuler order
Static
fromConvert axis angle rotation to quaternion
Serializable quaternion
Static
fromConvert euler angles to quaternion
Serializable quaternion
Euler vector
Optional
order?: EulerOrderOptional
unit?: AngleUnitStatic
fromStatic
fromConvert rotation matrix to quaternion
Serializable quaternion
This type
Rotation matrix
Static
fromConvert a threejs quaternion to serializable quaternion
Serializable quaternion
ThreeJS created quaternion
Static
multiplyStatic
slerpStatic
slerp
Orientation quaternion with accuracy