createTranslation
Creates a translation transformation matrix.
Return
A new affine transformation matrix representing the translation.
Parameters
translation
The vector representing the translation in the x and y directions.
Creates a translation transformation matrix.
Return
A new affine transformation matrix representing the translation.
Parameters
x
The translation in the x-direction.
y
The translation in the y-direction.