Quaternion.initFromAngles

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

See also: graphene_quaternion_init_from_euler()

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

the initialized quaternion

Meta