Constructor of quaternion: q = a + bi + cj + dk
the first real component
the i-coefficient
the j-coefficient
the k-coefficient
Staticidentitynew identity quaternion instance
Staticfromthe rotation axis
the rotation angle in radians
new normalized quaternion instance from axis and radian
new cloned quaternion instance
Sets all components of this quaternion: q = a + bi + cj + dk (mutates this)
the first real component
the i-coefficient
the j-coefficient
the k-coefficient
this instance, for method chaining
Sets this quaternion to other quaternion (mutates this)
the other quaternion
this instance, for method chaining
Sets this quaternion from axis and radian (mutates this)
the rotation axis
the rotation angle in radians
this instance, for method chaining
Calculates conjugate of this quaternion (mutates this)
this instance, for method chaining
Adds other quaternion to this instance (mutates this)
other quaternion
this instance, for method chaining
Subtracts other quaternion from this instance (mutates this)
other quaternion
this instance, for method chaining
Multiplies this instance by other quaternion (mutates this)
other quaternion
this instance, for method chaining
Calculates inverse of this quaternion (mutates this)
this instance, for method chaining
Divides this instance by other quaternion (mutates this)
other quaternion
this instance, for method chaining
Multiplies this quaternion by a scalar (mutates this)
scalar value
this instance, for method chaining
Divides this quaternion by a scalar (mutates this)
scalar value
this instance, for method chaining
Rotates this quaternion around X axis by given radian (mutates this)
the rotation angle in radians
this instance, for method chaining
Rotates this quaternion around Y axis by given radian (mutates this)
the rotation angle in radians
this instance, for method chaining
Rotates this quaternion around Z axis by given radian (mutates this)
the rotation angle in radians
this instance, for method chaining
Represents a quaternion using Hamilton's notation: q = a + bi + cj + dk