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.

Deprecated: Redundant with shz_quat_from_rotation_xyz(). This routine simply calls directly into it and should not be used.

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.
  • C++ equivalent: none (call the C function from C++)
  • Type-generic form: none
  • Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
  • Defined in: sh4zam/shz_quat.h:522
  • Module: Quaternion, section "Deprecated"

shz_quat_from_rotation_xyz