Package: graphene

Function graphene:quaternion-init-from-angle-vec3

Lambda List

graphene:quaternion-init-from-angle-vec3 (quaternion angle axis)

Arguments

quaternion -- a graphene:quaternion-t instance to initalize
angle -- a number coerced to a float with the rotation on a given axis, in degrees
axis -- a graphene:vec3-t instance with the axis of rotation, expressed as a vector

Return Value

The initialized graphene:quaternion-t instance.

Details

Initializes a quaternion using an angle on a specific axis.
 

See also

#2023-12-8