Skip to content

shz_quat_from_angles_xyz

Markdown
SHZ_INLINE shz_quat_t shz_quat_from_angles_xyz(float xangle, float yangle, float zangle) SHZ_NOEXCEPT;

Initializes and returns a quaternion with the given X-Y-Z rotations in radians.

NameTypeDescription
xanglefloat
yanglefloat
zanglefloat

shz_quat_t

The rotation is applied first around the X-axis, then the Y-, then the Z-axis.

  • These angles are Tait-Bryan angles representing an intrinsic rotation.