rotate

fun rotate(angle: Float, axis: Vec3)

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

This is the equivalent of calling graphene_matrix_init_rotate() and then multiplying the matrix @m with the rotation matrix.

Since

1.0

Parameters

angle

the rotation angle, in degrees

axis

the rotation axis, as a #graphene_vec3_t