Calculating π
Area method: Area of a circle should be given by the relation A = πr2 where A and r are area and radius respectively, giving π = A/r2. Substituting the area of the drawn shape and radius obtained from the circle regression into the expression gives a value for π.
Circumference method: Circumference C of a circle should be given by the relation C = 2πr, giving π = C/2r. Substituting the perimeter of the drawn shape and radius obtained from the circle regression into the expression gives a value for π.
Roundness method: The ratio between the area of a circle and the square of its circumferece should, from the above formulas, be 4π. (This is also the maximum value of this ratio for any shape in a flat 2D plane; that is, of all the shapes with a certain perimeter, the circle has the largest area! See the Isoperimetric Inequality Wikipedia page For why this is.). Finding this ratio between area and perimeter squared of the drawn shape, then dividing by four, gives a value of π if your circle is perfect.