translate

fun translate(x: Float, y: Float): Mat3

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


fun translate(offset: Vec2f): Mat3

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, result: Mat3): Mat3

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