rotate method

rotate

Applies a clockwise rotation about the origin to the current transformation matrix.

def rotate(self, theta):
    ...
ParameterTypeDescription
thetafloatThe angle of the rotation, in radians.

rotate

Rotate the current transformation matrix around a point.

def rotate(self, theta, x, y):
    ...
ParameterTypeDescription
thetafloatAn angle of rotation in radians.
xfloatX coordinate of point.
yfloatY coordinate of point.

See Also