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 single float for the rotation angle on the X axis (yaw), in radians
yrad -- a number coerced to a single float for the rotation angle on the Y axis (pitch), in radians
zrad -- a number coerced to a single float for 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

#2025-4-7