If you take the exact perpendiculars (right angles) from where the carpet just touches each wall and draw them back until they meet, that will be the centre of the circle. Both distances shoud be the same and that will be the radius r and the centre at (r,r).
Equation should be (x-r)^2 + (y-r)^2 =r^2



