Matrix.initRotate

graphene.matrix.Matrix initRotate(float angle, graphene.vec3.Vec3 axis)

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

Parameters

anglethe rotation angle, in degrees
axisthe axis vector as a #graphene_vec3_t

Returns

the initialized matrix