translationMatrix

fun translationMatrix(tx: Float = 0.0f, ty: Float = 0.0f): Matrix(source)

Creates a translation matrix with the translation amounts tx and ty respectively on the x and y axis.