+def to_general(line, size):
+ # TODO comment
+ (x1, y1), (x2, y2) = linef.line_from_angl_dist(line, size)
+ return (y2 - y1, x1 - x2, x2 * y1 - x1 * y2)
+
+def intersection(l1, l2):
+ a1, b1, c1 = l1
+ a2, b2, c2 = l2
+ delim = float(a1 * b2 - b1 * a2)
+ x = (b1 * c2 - c1 * b2) / delim
+ y = (c1 * a2 - a1 * c2) / delim
+ return x, y
+
+# TODO remove the parameter get_all