def computeLine(p1, p2):
    
    """
    Computing the lines parameters m and b given two points
    
    """

    
    dx = p1[0] - p2[0]
    return (p1[1] - p2[1]) / dx, (p1[0] * p2[1] - p2[0] * p1[1]) / dx