Skip to content

shz_vec3_rotate_x

Markdown
SHZ_INLINE shz_vec3_t shz_vec3_rotate_x(shz_vec3_t vec, float radians) SHZ_NOEXCEPT;

Rotates the given 3D vector about the X axis by the given angle in radians.

NameTypeDescription
vecshz_vec3_t
radiansfloat

shz_vec3_t

  • 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.

shz_xmtrx_apply_rotation_x