shz_vec3_rotate_xyz_u16
SHZ_INLINE shz_vec3_t shz_vec3_rotate_xyz_u16(shz_vec3_t vec, uint16_t xAngle, uint16_t yAngle, uint16_t zAngle) SHZ_NOEXCEPT;Equivalent to shz_vec3_rotate_xyz(), with 16-bit binary angles.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
vec | shz_vec3_t | The vector to rotate. |
xAngle | uint16_t | Angle about the X axis, as a 16-bit binary angle. |
yAngle | uint16_t | Angle about the Y axis, as a 16-bit binary angle. |
zAngle | uint16_t | Angle about the Z axis, as a 16-bit binary angle. |
Returns
Section titled “Returns”vec rotated by the given angles.
Naming and requirements
Section titled “Naming and requirements”u16: Angle is a 16-bit fixed-point value: 0..65535 maps to 0..2π, the nativeFSCAinput format. (Naming and Suffixes)
Availability
Section titled “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:1199 - Module: Vector, section "Rotations"