rotate method

rotate

Applies a clockwise rotation of an amount specified in the angle parameter, around the origin (zero x and y coordinates) for this Matrix in the default (Prepend) order.

def rotate(self, angle):
    ...
ParameterTypeDescription
anglefloatThe rotate angle.

rotate

Applies a clockwise rotation of an amount specified in the angle parameter, around the origin (zero x and y coordinates) for this Matrix in the specified order.

def rotate(self, angle, order):
    ...
ParameterTypeDescription
anglefloatThe rotate angle.
orderMatrixOrderThe matrix order.

See Also