Quaternion.toAngles

void toAngles(out float degX, out float degY, out float degZ)

Converts a #graphene_quaternion_t to its corresponding rotations on the Euler angles on each axis.

Parameters

degXreturn location for the rotation angle on the X axis (yaw), in degrees
degYreturn location for the rotation angle on the Y axis (pitch), in degrees
degZreturn location for the rotation angle on the Z axis (roll), in degrees