Distance between two lines

If the two lines intersect, then it is clear that D = 0

If they do not intersect and are parallel, then
D corresponds to the distance between a point from one of the two lines and the other line and is given by the formula that find the distance from a point to a line.