

def from_points(P1, P2):
    return Vector2((P2[0] - P1[0]), (P2[1] - P1[1]))

dataset/ETHPy150Open PythonProgramming/Beginning-Game-Development-with-Python-and-Pygame/Chapter 6/gameobjects/vector2.py Vector2.from_points/original