# Calculating circumference from 2d coords

I'm trying to calculate the circumference of a circle given say three reference points from a 2d coordinates that would form an arc.

The problem is the reference points may be slightly inaccurate so i'm using three to hopefully get an exact arc.

Once I have my 3 reference points how can I calculate the circumference?

I'm attaching an image so you may better understand what I'm trying to do.

http://i47.tinypic.com/2j2vpzq.jpg

 Also, the reason I'm doing it this way is that the image is a scan and top or side of the circle may be chopped off so getting the diameter may not always be possible and the size of the circle differs from time to time.

Thanks,

Craig

-

It is very easy. You have 3 points $A, B, C$. The center of circle is a point, which has the same distance from these 3 points (it is an intersection of normals (axes) of $AB$ and $BC$). Once you have a center, the radius is distance between center and $A$, $B$ or $C$. When you have a radius, you can calculate the circumference $=2\pi r$.
Basically you're trying to calculate the radius of the circle circumscribed about the triangle $ABC$. Given all the coordinates of those points, you can calculate the length of each side $a,b,c$ of the triangle and its surface $S$ (by the Heron's formula for instance) and then use the $R = \dfrac{abc}{4S}$ identity.