

def find_direction(start, end):
    '\n    Find direction from start to end\n    '
    if (start[0] == end[0]):
        if (start[1] < end[1]):
            return 5
        else:
            return 1
    elif (start[1] == end[1]):
        if (start[0] < end[0]):
            return 3
        else:
            return 7
    elif (start[0] < end[0]):
        if (start[1] < end[1]):
            return 4
        else:
            return 2
    elif (start[0] > end[0]):
        if (start[1] < end[1]):
            return 6
        else:
            return 8

dataset/ETHPy150Open tuturto/pyherc/src/pyherc/data/geometry.py find_direction/original