translate method

translate

Post-multiplies a translation transformation on the current matrix and returns the resulting matrix.

Returns

The resulting matrix.

def translate(self, x, y):
    ...
ParameterTypeDescription
xfloatThe distance to translate along the x-axis.
yfloatThe distance to translate along the y-axis.

See Also