def get_quadrant(point, limit=(1000, 1000)):
    """
    Returns the quadrant that the the point is in.

    Quadrant number is defined as the following:
    ---------
    | 2 | 1 |
    ---------
    | 3 | 4 |
    ---------
            
    Top left is (0,0), bottom right is LIMIT.
    """

    if point[0] < limit[0] / 2:
        if point[1] < limit[1] / 2:
            return 2
        else:
            return 3
    else:
        if point[1] < limit[1] / 2:
            return 1
        else:
            return 4