# shz_xmtrx_apply_rotation_zyx

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

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

Multiplies and accumulates XMTRX by a 3D Z-Y-X rotation matrix, with the corresponding angles given in radians.

## Parameters

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

## Returns

Nothing (`void`).

## Details

The transform is applied to the inner 3x3 values within XMTRX, preserving the translational components.

## Notes

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

## Availability

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

## See also

[`shz_xmtrx_apply_rotation_xyz`](https://sh4zam.com/api/xmtrx/shz_xmtrx_apply_rotation_xyz/), [`shz_xmtrx_apply_rotation_yxz`](https://sh4zam.com/api/xmtrx/shz_xmtrx_apply_rotation_yxz/)
