# shz_vec3_rotate_x_u16

Source: https://sh4zam.com/api/vector/shz_vec3_rotate_x_u16/

> Equivalent to shz_vec3_rotate_x(), with a 16-bit binary angle

```c
SHZ_INLINE shz_vec3_t shz_vec3_rotate_x_u16(shz_vec3_t vec, uint16_t radians16) SHZ_NOEXCEPT;
```

Equivalent to `shz_vec3_rotate_x()`, with a 16-bit binary angle.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vec` | `shz_vec3_t` | The vector to rotate. |
| `radians16` | `uint16_t` | Angle of rotation about the X axis, as a 16-bit binary angle. |

## Returns

`vec` rotated by `radians16`.

## Naming and requirements

- `u16`: Angle is a 16-bit fixed-point value: 0..65535 maps to 0..2π, the native `FSCA` input format. ([Naming and Suffixes](https://sh4zam.com/concepts/naming-and-suffixes/))

## Availability

- **C++ equivalent:** none (call the C function from C++)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_vector.h:1167`](https://github.com/gyrovorbis/sh4zam/blob/6b22b851ad9ca109049f956dbbbecf7c519c959f/include/sh4zam/shz_vector.h#L1167)
- **Module:** [Vector](https://sh4zam.com/api/vector/), section "Rotations"

## See also

[`shz_vec3_rotate_x`](https://sh4zam.com/api/vector/shz_vec3_rotate_x/), [`shz_xmtrx_rotate_x_u16`](https://sh4zam.com/api/xmtrx/shz_xmtrx_rotate_x_u16/)
