(self, angle, pt=None)
return rv
Rotate ``angle`` radians counterclockwise about Point ``pt``.

        See Also
        ========

        rotate, scale

        Examples
        ========

        >>> from sympy import Point, pi
        >>> t = Point(1, 0)
        >>> t.rotate(pi/2)
        Point(0, 1)
        >>> t.rotate(pi/2, (2, 0))
        Point(2, -1)
Rotate ``angle`` radians counterclockwise about Point ``pt``.
Rotate angle radians counterclockwise about Point pt .
def rotate(self, angle, pt=None):
        """Rotate ``angle`` radians counterclockwise about Point ``pt``.

        See Also
        ========

        rotate, scale

        Examples
        ========

        >>> from sympy import Point, pi
        >>> t = Point(1, 0)
        >>> t.rotate(pi/2)
        Point(0, 1)
        >>> t.rotate(pi/2, (2, 0))
        Point(2, -1)

        """
        from sympy import cos, sin, Point

        c = cos(angle)
        s = sin(angle)

        rv = self
        if pt is not None:
            pt = Point(pt)
            rv -= pt
        x, y = rv.args
        rv = Point(c*x - s*y, s*x + c*y)
        if pt is not None:
            rv += pt
        return rv
def rotate ( self , angle , pt = None ) : from sympy import cos , sin , Point c = cos ( angle ) s = sin ( angle ) rv = self if pt is not None : pt = Point ( pt ) rv -= pt x , y = rv . args rv = Point ( c * x - s * y , s * x + c * y ) if pt is not None : rv += pt return rv