A quaternion class for representing 3D rotations.
Quaternions are a mathematical concept used to represent rotations in 3D space. They offer advantages over Euler angles (avoiding gimbal lock) and rotation matrices (more compact and numerically stable).
This class extends Vector4, where:
- x, y, z components represent the vector partbv
- w component represents the scalar part
clone(): Quaternion
toEuler(): ReadonlySimpleVector3