Package: graphene

Function graphene:quaternion-init-from-radians

Lambda List

graphene:quaternion-init-from-radians (quaternion xrad yrad zrad)

Arguments

quaternion -- a graphene:quaternion-t instance to initalize
xrad -- a number coerced to a float with the rotation angle on the x axis (yaw), in radians
yrad -- a number coerced to a float with the rotation angle on the y axis (pitch), in radians
zrad -- a number coerced to a float with the rotation angle on the z axis (roll), in radians

Return Value

The initialized graphene:quaternion-t instance.

Details

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

See also

#2023-12-8