Quaternion.initFromAngles

graphene.quaternion.Quaternion initFromAngles(float degX, float degY, float degZ)

Initializes a #graphene_quaternion_t using the values of the Euler angles on each axis.

See also: [graphene.quaternion.Quaternion.initFromEuler]

Parameters

degXrotation angle on the X axis (yaw), in degrees
degYrotation angle on the Y axis (pitch), in degrees
degZrotation angle on the Z axis (roll), in degrees

Returns

the initialized quaternion