shz_quat_from_rotation_xyz
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.
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 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.
Availability
Section titled “Availability”- C++ equivalent:
shz::quat::from_rotation_xyz - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_quat.h:82 - Module: Quaternion, section "Initialization"
See also
Section titled “See also”shz_quat_from_rotation_xyz_u16, shz_xmtrx_init_rotation_xyz, shz_xmtrx_init_rotation_quat