translate

fun translate(x: Float, y: Float, z: Float): Matrix4

Generates a translation matrix given x, y, and z coordinates.

Return

The translation matrix as a Matrix4.

Parameters

x

The x coordinate.

y

The y coordinate.

z

The z coordinate.