Package: graphene

Function graphene:matrix-init-rotate

Lambda List

graphene:matrix-init-rotate (matrix angle axis)

Arguments

matrix -- a graphene:matrix-t instance
angle -- a number for the rotation angle, in degrees
axis -- a graphene:vec3-t instance for the axis vector

Return Value

The initialized graphene:matrix-t instance.

Details

Initializes the matrix to represent a rotation of angle degrees on the axis represented by the axis vector.

Notes

The angle argument is coerced to a single float before being passed to the foreign C function.
 

See also

#2024-12-30