def rotate(self, angle):
        '''Rotate the vector with an angle in degrees.

        >>> v = Vector(100, 0)
        >>> v.rotate(45)
        >>> v
        [70.710678118654755, 70.710678118654741]

        '''
        angle = math.radians(angle)
        return Vector(
            (self[1] * math.sin(angle)) - (self[0] * math.cos(angle)),
            (self[1] * math.cos(angle)) + (self[0] * math.sin(angle)))
dataset/ETHPy150Open kivy/kivy/kivy/vector.py/Vector.rotate/swapped operands of `-`