# shz_vec3_rotate_yxz_u16

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

> Equivalent to shz_vec3_rotate_yxz(), with 16-bit binary angles

```c
SHZ_INLINE shz_vec3_t shz_vec3_rotate_yxz_u16(shz_vec3_t vec, uint16_t yAngle, uint16_t xAngle, uint16_t zAngle) SHZ_NOEXCEPT;
```

Equivalent to `shz_vec3_rotate_yxz()`, with 16-bit binary angles.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `vec` | `shz_vec3_t` | The vector to rotate. |
| `yAngle` | `uint16_t` | Angle about the Y axis, as a 16-bit binary angle. |
| `xAngle` | `uint16_t` | Angle about the X axis, as a 16-bit binary angle. |
| `zAngle` | `uint16_t` | Angle about the Z axis, as a 16-bit binary angle. |

## Returns

`vec` rotated by the given angles.

## 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:1235`](https://github.com/gyrovorbis/sh4zam/blob/6b22b851ad9ca109049f956dbbbecf7c519c959f/include/sh4zam/shz_vector.h#L1235)
- **Module:** [Vector](https://sh4zam.com/api/vector/), section "Rotations"

## See also

[`shz_vec3_rotate_yxz`](https://sh4zam.com/api/vector/shz_vec3_rotate_yxz/), [`shz_xmtrx_init_rotation_yxz_u16`](https://sh4zam.com/api/xmtrx/shz_xmtrx_init_rotation_yxz_u16/)
