Matrix.initRotate

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

class Matrix
initRotate
(
float angle
,)

Parameters

angle float

the rotation angle, in degrees

axis Vec3

the axis vector as a #graphene_vec3_t

Return Value

Type: Matrix

the initialized matrix

Meta