fromEulerZYX

fun fromEulerZYX(yaw: Float = 0.0f, pitch: Float = 0.0f, roll: Float = 0.0f): Quaternion

Construct a Quaternion from Euler angles using YPR around ZYX respectively

The Euler angles are applied in ZYX order. i.e: a vector is first rotated about X (roll) then Y (pitch) and then Z (yaw).

Parameters

roll

about X axis in radians

pitch

about Y axis in radians

yaw

about Z axis in radians

Sources

common source
Link copied to clipboard