def intersection(l1, l2):
    """
    Determines the intersection between two lines l1 and l2.
    l1 and l2 each represent a line with line formula ax + by = c, where a: l[0], b: l[1], c: -l[2]
    The intersection can be found by calculating determinants d, dx and dy
    :param l1: line 1
    :param l2: line 2
    :return: Intersection x, y
    """
    d = l1[0] * l2[1] - l1[1] * l2[0]
    dx = l1[2] * l2[1] - l1[1] * l2[2]
    dy = l1[0] * l2[2] - l1[2] * l2[0]

    if d == 0:
        return False
    x = dx / d
    y = dy / d
    return x, y