'Override GeometryEntity.rotate to first rotate the RegularPolygon
about its center.
>>> from sympy import Point, RegularPolygon, Polygon, pi
>>> t = RegularPolygon(Point(1, 0), 1, 3)
>>> t.vertices[0] # vertex on x-axis
Point2D(2, 0)
>>> t.rotate(pi/2).vertices[0] # vertex on y axis now
Point2D(0, 2)
See Also
rotation
spin : Rotates a RegularPolygon in place'

def rotate(self, angle, pt=None):

    r = type(self)(*self.args)
    r._rot += angle
    return GeometryEntity.rotate(r, angle, pt)
