Quaternion.initFromAngles

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

See also: graphene.quaternion.Quaternion.initFromEuler

class Quaternion
initFromAngles
(
float degX
,
float degY
,
float degZ
)

Parameters

degX float

rotation angle on the X axis (yaw), in degrees

degY float

rotation angle on the Y axis (pitch), in degrees

degZ float

rotation angle on the Z axis (roll), in degrees

Return Value

Type: graphene.quaternion.Quaternion

the initialized quaternion