

def getPointOnLine(x1, y1, x2, y2, n):
    'Returns the (x, y) tuple of the point that has progressed a proportion\n    n along the line defined by the two x, y coordinates.\n\n    Copied from pytweening module.\n    '
    x = (((x2 - x1) * n) + x1)
    y = (((y2 - y1) * n) + y1)
    return (x, y)

dataset/ETHPy150Open asweigart/pyautogui/pyautogui/__init__.py getPointOnLine/original