| Parameter | Description |
|---|---|
| x | The x component of the quaternion. |
| y | The y component of the quaternion. |
| z | The z component of the quaternion. |
| w | The w component of the quaternion. |
quaternion The quaternion constructed from individual components.
Returns a quaternion constructed from four float values.
| Parameter | Description |
|---|---|
| value | The float4 containing the components of the quaternion. |
quaternion The quaternion constructed from a float4.
Returns a quaternion constructed from a float4 vector.
| Parameter | Description |
|---|---|
| m | The float3x3 rotation matrix. |
quaternion The quaternion constructed from a float3x3 matrix.
Returns a unit quaternion constructed from a float3x3 rotation matrix. The matrix must be orthonormal.
| Parameter | Description |
|---|---|
| m | The float4x4 matrix (must be orthonormal). |
quaternion The quaternion constructed from a float4x4 matrix.
Returns a unit quaternion constructed from a float4x4 matrix. The matrix must be orthonormal.