shz_vec3_rotate_y
SHZ_INLINE shz_vec3_t shz_vec3_rotate_y(shz_vec3_t vec, float radians) SHZ_NOEXCEPT;Rotates the given 3D vector about the Y axis by the given angle in radians.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
vec | shz_vec3_t | |
radians | float |
Returns
Section titled “Returns”shz_vec3_t
Warnings
Section titled “Warnings”- This routine should only be used for one-off rotations of a single vector. To rotate multiple vectors in a batch, use the XMTRX API.
Availability
Section titled “Availability”- C++ equivalent:
shz::vec3::rotate_y - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_vector.h:671 - Module: Vector, section "Angles"