Optionalx: number
x coordinate
Optionaly: number
y coordinate
Optionalz: number
z coordinate
Optionalw: number
w coordinate
ReadonlyisClones this quaternion.
Copies 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.
Optionaloffset: 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.
Inverts this quaternion.
Computes length of this quaternion.
Multiplies this quaternion by b.
Sets this quaternion to a x b Adapted from http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/code/index.htm.
Normalizes this quaternion.
Sets values of this quaternion.
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 specified by Euler angles.
Optionalupdate: booleanSets 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.
Optionalarray: number[]
(optional) array to store the quaternion to. If this is not provided, a new array will be created.
Optionaloffset: number
(optional) optional offset into the array.
The created or provided array.
Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.
Optionalarray: QuaternionTuple
(optional) array to store the quaternion to. If this is not provided, a new array will be created.
Optionaloffset: 0
(optional) optional offset into the array.
The created or provided array.
Copies x, y, z and w into the provided array-like.
array-like to store the quaternion to.
Optionaloffset: number
(optional) optional offset into the array.
The provided array-like.
Convert the quaternion to euler angles
Optionalorder: EulerOrder
Euler order
Converted euler
This method defines the serialization result of Quaternion.
The numerical elements of this quaternion in an array of format [x, y, z, w].
StaticfromConvert axis angle rotation to quaternion
Serializable quaternion
Convert axis angle rotation to quaternion
Axis-angle rotation
Serializable quaternion
Convert axis angle rotation to quaternion
Serializable quaternion
StaticfromConvert euler angles to quaternion
Serializable quaternion
Convert euler angles to quaternion
Serializable quaternion
Convert euler angles to quaternion
Serializable quaternion
Convert euler angles to quaternion
Euler vector
Serializable quaternion
Convert euler angles to quaternion
Euler vector
Serializable quaternion
StaticfromConvert rotation matrix to quaternion
Serializable quaternion
StaticfromConvert a threejs quaternion to serializable quaternion
ThreeJS created quaternion
Serializable quaternion
StaticmultiplyStaticslerp
Serializable THREE.js Quaternion