quaternion.euler
EditCreates a quaternion from euler angles. The rotation order is YXZ.
q = quaternion.euler(pitch, yaw, roll)Arguments
| Name | Type | Description |
| pitch | number | The pitch (x axis rotation), in radians. |
| yaw | number | The yaw (y axis rotation), in radians. |
| roll | number | The roll (z axis rotation), in radians. |
Returns
| Name | Type | Description |
| q | quaternion | The new quaternion. It will be normalized. |