Package: graphene

Function graphene:quaternion-init-from-angles

Lambda List

graphene:quaternion-init-from-angles (quaternion xdeg ydeg zdeg)

Arguments

quaternion -- a graphene:quaternion-t instance to initialize
xdeg -- a number coerced to a single float for the rotation angle on the X axis (yaw), in degrees
ydeg -- a number coerced to a single float for the rotation angle on the Y axis (pitch), in degrees
zdeg -- a number coerced to a single float for the rotation angle on the Z axis (roll), in degrees

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