Quaternion.initFromRadians

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

See also: graphene.quaternion.Quaternion.initFromEuler

class Quaternion
initFromRadians
(
float radX
,
float radY
,
float radZ
)

Parameters

radX float

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

radY float

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

radZ float

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

Return Value

Type: graphene.quaternion.Quaternion

the initialized quaternion