(a-b)^2=(c-d)^2
You already know four points, so you can use the unknown number A to find the distance between the four sides, and add them up to become the formula of n (a+x) 2+y x) 2+y.
Then its minimum circumference is y.
I don't think so because the process algorithm is too complicated.