How to determine the radius and center of a circle when only three noncollinear points are known?

Posted by Bob on Stack Overflow See other posts from Stack Overflow or by Bob
Published on 2010-04-12T16:36:14Z Indexed on 2010/04/12 16:43 UTC
Read the original article Hit count: 184

Filed under:
|
|

I'm working on a C# program that deals with Oracle Spatial geometry. When circle data is stored in a geometry field only three non-collinear points are stored to represent the circle. The problem is that I need to use this data on a Google Maps web page and need the center point and radius of the circle (since my circle drawing function uses that information).

Can anyone help with the math involved and translating said math to C#? I think this page may hold the answer, but I'm having a hard time following it. There are formulas for radius and center given three points, but then they define the variables as matrices and I get lost at that point. How would I solve that in code?

© Stack Overflow or respective owner

Related posts about c#

Related posts about math