shz_quat_from_angles_xyz
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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
xangle | float | |
yangle | float | |
zangle | float |
Returns
Section titled “Returns”shz_quat_t
Details
Section titled “Details”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.
Availability
Section titled “Availability”- C++ equivalent:
shz::quat::from_angles_xyz - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_quat.h:73 - Module: Quaternion, section "Initialization"