Creates a new Quaternion instance with the specified components.
The x component of the quaternion. Default is 0.
The y component of the quaternion. Default is 0.
The z component of the quaternion. Default is 0.
The w component of the quaternion. Default is 1 (identity rotation).
The w component of the quaternion (scalar part).
The x component of the quaternion (vector part).
The y component of the quaternion (vector part).
The z component of the quaternion (vector part).
Creates a new quaternion with the same components as this one.
A new quaternion instance with copied values.
Copies the components from another quaternion to this one.
The quaternion to copy from.
This quaternion instance for method chaining.
Determines if this quaternion is equal to another quaternion.
The quaternion to compare with.
True if all components are equal, false otherwise.
Sets the components of this quaternion.
The new x component.
The new y component.
The new z component.
The new w component.
This quaternion instance for method chaining.
Sets the quaternion components based on Euler angles. Converts Euler angles (rotation around x, y, z axes) to a quaternion representation.
The Euler angles to convert from, including rotation order.
This quaternion instance for method chaining.
Represents a quaternion, which is a mathematical construct used to represent rotations in 3D space. Quaternions avoid gimbal lock and provide smooth interpolations between orientations. A quaternion is defined by four components: x, y, z (vector part) and w (scalar part).