Luna::Quaternion::from_euler_angles

Float4 from_euler_angles(f32 pitch, f32 yaw, f32 roll)

Creates one quaternion from euler angles.

Parameters

  • in pitch

    The pitch value (clockwise rotation around X axis) in radians.

  • in yaw

    The yaw value (clockwise rotation around Y axis) in radians.

  • in roll

    The roll value (clockwise rotation around Z axis) in radians.

Return value

Returns the created quaternion.