def getLine(p1, p2, eps=1e-30):
    """
    p1 is a tuple of the first point
    p2 is a tuple of the second point
    returns a tuple of the slope and y-intercept of the line going throug both points
    """

    if abs(p1[0] - p2[0]) < eps:
        slope = 1 / eps
    else:
        slope = float((p1[1] - p2[1]) / (p1[0] - p2[0]))
    yint = float((-1 * (p1[0])) * slope + p1[1])
    # print(p1,p2)
    # print("line", (slope, yint))
    return (slope, yint)