Skip to content

shz_quat_from_axis_angle

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

NameTypeDescription
axisshz_vec3_t
anglefloat

shz_quat_t