A Quaternion class that can be used to represent rotations.
| Signature | Description |
|---|---|
| Quaternion() | Creates an identity quaternion i.e. x = y = z = 0, w = 1 |
| Quaternion(x, y, z ,w) | Creates a quaternion with its x,y,z,w properties set to the x,y,z,w values passed into the constructor |
| Name | Type | Description |
|---|---|---|
| x | Number | The x component of the quaternion |
| y | Number | The y component of the quaternion |
| z | Number | The z component of the quaternion |
| w | Number | The w component of the quaternion |
| Name and Signature | Return Type | Description |
|---|
| Name | Description |
|---|