def line(p1, p2):
    """Converts line from a 2-point representation into a 3-parameter representation."""
    A = (p1[1] - p2[1])
    B = (p2[0] - p1[0])
    C = (p1[0]*p2[1] - p2[0]*p1[1])
    return A, B, -C