Please, help me to solve this problem https://ru.kattis.com/problems/fenceortho, i know that i can use Rotating Calipers method, using 4 calipers, but i can't intersect them.
I write calipers method storing point and angle of caliper, please help me how to find intersection point of 2 calipers.