Quaternion
fun Quaternion()
Content copied to clipboard
Creates an identity quaternion (no rotation).
This represents no rotation from the original orientation, equivalent to Euler angles (0, 0, 0).
Creates a copy of another quaternion.
Parameters
data
The quaternion to copy
Creates a quaternion with specific component values.
Note: For most use cases, you should use normalized quaternions for representing rotations. This constructor doesn't automatically normalize the values.
Parameters
x
The x component of the quaternion (vector part)
y
The y component of the quaternion (vector part)
z
The z component of the quaternion (vector part)
w
The w component of the quaternion (scalar part)