Skip to content

shz_quat_from_rotation_xyz

Markdown
SHZ_INLINE shz_quat_t shz_quat_from_rotation_xyz(float xAngle, float yAngle, float zAngle) SHZ_NOEXCEPT;

Returns the quaternion of the rotation shz_xmtrx_init_rotation_xyz() builds, from angles in radians.

NameTypeDescription
xAnglefloat
yAnglefloat
zAnglefloat

shz_quat_t

The result equals the product of the axis quaternions in the order of the name, Qx * Qy * Qz, so it describes the same orientation as the matrix of the same name.

shz_quat_from_rotation_xyz_u16, shz_xmtrx_init_rotation_xyz, shz_xmtrx_init_rotation_quat