Quaternion.initFromRadians

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

See also: graphene_quaternion_init_from_euler()

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

the initialized quaternion

Meta