shz_quat_rotate_towards
SHZ_INLINE shz_quat_t shz_quat_rotate_towards(shz_quat_t from, shz_quat_t to, float max_angle) SHZ_NOEXCEPT;Rotates quaternion from towards quaternion to by at most max_angle radians.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
from | shz_quat_t | |
to | shz_quat_t | |
max_angle | float |
Returns
Section titled “Returns”shz_quat_t
- Returns
toif the angle between them is already less thanmax_angle.
Availability
Section titled “Availability”- C++ equivalent:
shz::quat::rotate_towards - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_quat.h:252 - Module: Quaternion, section "Miscellaneous"