translate method

translate

Applies the specified translation vector to this Matrix using (default) Prepend order.

def translate(self, tx, ty):
    ...
ParameterTypeDescription
txfloatThe tx. The tx. The tx.
tyfloatThe ty. The ty. The ty.

translate

Applies the specified translation vector to this Matrix in the specified order.

def translate(self, offset_x, offset_y, order):
    ...
ParameterTypeDescription
offset_xfloatThe offset X.
offset_yfloatThe offset Y.
orderMatrixOrderThe order.

See Also