Returns the components of the quaternion as numbers, either in an angle/axis representation or as raw quaternion values.
a, b, c, d = Quat:unpack(raw)
Arguments
Name | Type | Default | Description |
raw | boolean | false |
Whether the values should be returned as raw values instead of angle/axis.
|
Returns
Name | Type | Description |
a | number |
The angle in radians, or the x value.
|
b | number |
The x component of the rotation axis or the y value.
|
c | number |
The y component of the rotation axis or the z value.
|
d | number |
The z component of the rotation axis or the w value.
|
See also