Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 1 down vote accepted

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

share|improve this answer
    
Cool, that's exactly what I was looking for on the link. Thank you. –  Craig Stewart Sep 6 '12 at 9:17

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.