setToTranslation

Sets this matrix to a translation matrix with specified translation components.

Return

this matrix with its translation components set to those specified and all other components set to that of an identity matrix

Parameters

x

the X translation component

y

the Y translation component