translate method

translate

Translates the matrix by the specified offset values.

def translate(self, offset_x, offset_y):
    ...
ParameterTypeDescription
offset_xfloatThe offset value along the x-axis.
offset_yfloatThe offset value along the y-axis.

translate

Translates the matrix by the specified offset values in the specified order.

def translate(self, offset_x, offset_y, order):
    ...
ParameterTypeDescription
offset_xfloatThe offset value along the x-axis.
offset_yfloatThe offset value along the y-axis.
orderWebMatrixOrderThe order in which translation is applied.

See Also