translate

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

Post-multiplies this matrix by a translation matrix.

Return

this matrix

Parameters

x

the X component of the translation vector

y

the Y component of the translation vector

z

the Z component of the translation vector


fun translate(offset: Vec3f): Mat4

Post-multiplies this matrix by a translation matrix.

Return

this matrix

Parameters

offset

the translation vector to add to the current matrix


fun translate(x: Float, y: Float, z: Float, result: Mat4): Mat4

Post-multiplies this matrix by a translation matrix and stores the result in the specified matrix

Return

the result matrix

Parameters

x

the X component of the translation vector

y

the Y component of the translation vector

z

the Z component of the translation vector