1
$\begingroup$

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

[edit] 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

2 Answers 2

1

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$.

In other words, you must find a circumcenter of triangle - http://blog.ivank.net/basic-geometry-functions.html

  • 0
    Cool, that's exactly what I was looking for on the link. Thank you.2012-09-06
0

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.