(self, angle, pt=None)
return GeometryEntity.rotate(r, angle, pt)
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
        Point(2, 0)
        >>> t.rotate(pi/2).vertices[0] # vertex on y axis now
        Point(0, 2)

        See Also
        ========

        rotation
        spin : Rotates a RegularPolygon in place
Override GeometryEntity.rotate to first rotate the RegularPolygon
        about its center.
Override GeometryEntity . rotate to first rotate the RegularPolygon about its center .
def rotate(self, angle, pt=None):
        """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
        Point(2, 0)
        >>> t.rotate(pi/2).vertices[0] # vertex on y axis now
        Point(0, 2)

        See Also
        ========

        rotation
        spin : Rotates a RegularPolygon in place

        """

        r = type(self)(*self.args)  # need a copy or else changes are in-place
        r._rot += angle
        return GeometryEntity.rotate(r, angle, pt)
def rotate ( self , angle , pt = None ) : r = type ( self ) ( * self . args ) # need a copy or else changes are in-place r . _rot += angle return GeometryEntity . rotate ( r , angle , pt )