Given sets of points P0, P1 (shape (n, 2)) describing lines and a set of points P (shape (m, 2)), return the (m, n) distances from each point to each line.
P0
P1
(n, 2)
P
(m, 2)
(m, n)
solve(...)