Matrix.rotate

Adds a rotation transformation to m, using the given angle and axis vector.

This is the equivalent of calling graphene.matrix.Matrix.initRotate and then multiplying the matrix m with the rotation matrix.

class Matrix
void
rotate

Parameters

angle float

the rotation angle, in degrees

axis graphene.vec3.Vec3

the rotation axis, as a #graphene_vec3_t