# shz_xmtrx_init_rotation_x

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

> Initializes XMTRX to be a 3D rotation matrix by x radians about the X axis

```c
SHZ_INLINE void shz_xmtrx_init_rotation_x(float x) SHZ_NOEXCEPT;
```

Initializes XMTRX to be a 3D rotation matrix by `x` radians about the X axis.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x` | `float` |  |

## Returns

Nothing (`void`).

## Availability

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