parameters: (self, angle)
return_statement: return Vec2D(self[0]*c+perp[0]*s, self[1]*c+perp[1]*s)
docstring: rotate self counterclockwise by angle
docstring_summary: rotate self counterclockwise by angle
docstring_tokens: rotate self counterclockwise by angle
function: def rotate(self, angle):
          """rotate self counterclockwise by angle
          """
          perp = Vec2D(-self[1], self[0])
          angle = angle * math.pi / 180.0
          c, s = math.cos(angle), math.sin(angle)
          return Vec2D(self[0]*c+perp[0]*s, self[1]*c+perp[1]*s)
function_tokens: def rotate ( self , angle ) : perp = Vec2D ( - self [ 1 ] , self [ 0 ] ) angle = angle * math . pi / 180.0 c , s = math . cos ( angle ) , math . sin ( angle ) return Vec2D ( self [ 0 ] * c + perp [ 0 ] * s , self [ 1 ] * c + perp [ 1 ] * s )