# shz_xmtrx_init_rotation_xyz

Source: https://sh4zam.com/api/xmtrx/shz_xmtrx_init_rotation_xyz/

```c
SHZ_INLINE void shz_xmtrx_init_rotation_xyz(float xAngle, float yAngle, float zAngle) SHZ_NOEXCEPT;
```

Initializes XMTRX to be a 3D X-Y-Z rotation matrix, with the corresponding angles given in radians.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `xAngle` | `float` |  |
| `yAngle` | `float` |  |
| `zAngle` | `float` |  |

## Returns

Nothing (`void`).

## Notes

- The given angles are represented as Tait-Bryan angles, representing an extrinsic rotation.

## Availability

- **C++ equivalent:** [`shz::xmtrx::init_rotation_xyz`](https://sh4zam.com/api/cpp/xmtrx/#init_rotation_xyz)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_xmtrx.h:282`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_xmtrx.h#L282)
- **Module:** [XMTRX](https://sh4zam.com/api/xmtrx/), section "Initialization"

## See also

[`shz_xmtrx_init_rotation_zyx`](https://sh4zam.com/api/xmtrx/shz_xmtrx_init_rotation_zyx/), [`shz_xmtrx_init_rotation_yxz`](https://sh4zam.com/api/xmtrx/shz_xmtrx_init_rotation_yxz/)
