shz_quat_to_axis_angle
SHZ_INLINE void shz_quat_to_axis_angle(shz_quat_t q, shz_vec3_t* vec, float* angle) SHZ_NOEXCEPT;Returns both the axis and angle of rotation simultaneously (faster if both are needed) from the given quaternion.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
q | shz_quat_t | |
vec | shz_vec3_t * | |
angle | float * |
Returns
Section titled “Returns”Nothing (void).
Availability
Section titled “Availability”- C++ equivalent:
shz::quat::to_axis_angle - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_quat.h:168 - Module: Quaternion, section "Properties"