shz_vec2_rotate
SHZ_INLINE shz_vec2_t shz_vec2_rotate(shz_vec2_t vec, float radians) SHZ_NOEXCEPT;Rotates the given 2D vector about the Z axis by the given angle in radians.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
vec | shz_vec2_t | |
radians | float |
Returns
Section titled “Returns”shz_vec2_t
Availability
Section titled “Availability”- C++ equivalent:
shz::vec2::rotate - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_vector.h:651 - Module: Vector, section "Angles"