}
// 3. get adjacent point of closestLine and heightLine, to compute b1
Point2D b1Point = areLinesAdjacent(closestLine, heightLine);
assert (b1Point != null);
double b1 = b1Point.distance(closest);
// 4. get adjacent point of furthestLine and heightLine, to compute b2
Point2D b2Point = areLinesAdjacent(furthestLine, heightLine);
assert(b2Point != null);
double b2 = b2Point.distance(furthest);