https://9dok.net/document/y4w4w44k-how-to-compute-the-area-of-feasible-solutions.html