getRotationMatrix

fun getRotationMatrix(axis: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>, angle: Float): Matrix4

Generates a rotation matrix given an axis and an angle.

Return

The rotation matrix as a Matrix4.

Parameters

axis

The axis of rotation as a Triple of floats (x, y, z).

angle

The angle of rotation in radians.