# shz_quat_from_angles_xyz

Source: https://sh4zam.com/api/quat/shz_quat_from_angles_xyz/

```c
SHZ_INLINE shz_quat_t shz_quat_from_angles_xyz(float xangle, float yangle, float zangle) SHZ_NOEXCEPT;
```

Initializes and returns a quaternion with the given X-Y-Z rotations in radians.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `xangle` | `float` |  |
| `yangle` | `float` |  |
| `zangle` | `float` |  |

## Returns

`shz_quat_t`

## Details

The rotation is applied first around the X-axis, then the Y-, then the Z-axis.

## Notes

- These angles are Tait-Bryan angles representing an intrinsic rotation.

## Availability

- **C++ equivalent:** [`shz::quat::from_angles_xyz`](https://sh4zam.com/api/cpp/quat/#from_angles_xyz)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_quat.h:73`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_quat.h#L73)
- **Module:** [Quaternion](https://sh4zam.com/api/quat/), section "Initialization"
