Quaternion.initFromRadians

graphene.quaternion.Quaternion initFromRadians(float radX, float radY, float radZ)

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

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

Parameters

radXrotation angle on the X axis (yaw), in radians
radYrotation angle on the Y axis (pitch), in radians
radZrotation angle on the Z axis (roll), in radians

Returns

the initialized quaternion