def FindPosition(point, points):
    """Determines the position of point in the vector points"""
    if point < points[0]:
        return -1

    for i in range(len(points) - 1):
        if point < points[i + 1]:
            return i

    return len(points)