rotate

fun rotate(x: Float, y: Float, z: Float, angle: Float): Matrix4

Generates a rotation matrix given x, y, z coordinates for the axis and an angle.

Return

The rotation matrix as a Matrix4.

Parameters

x

The x coordinate of the axis.

y

The y coordinate of the axis.

z

The z coordinate of the axis.

angle

The angle of rotation in radians.