rotate method

rotate

Rotate the current transformation matrix. Calls writeTransform(Transform). Rotating with a positive angle theta rotates points on the positive x axis toward the positive y axis.

def rotate(self, theta):
    ...
ParameterTypeDescription
thetafloatAngle in radians over which to rotate.

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