shz_quat_from_axis_angle
SHZ_INLINE shz_quat_t shz_quat_from_axis_angle(shz_vec3_t axis, float angle) SHZ_NOEXCEPT;Initializes and returns a quaternion representing a rotation of angle radians about the given axis.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
axis | shz_vec3_t | |
angle | float |
Returns
Section titled “Returns”shz_quat_t
Availability
Section titled “Availability”- C++ equivalent:
shz::quat::from_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:113 - Module: Quaternion, section "Initialization"