What is the algorithm for finding the center of a circle from three points?

前端 未结 6 1967
慢半拍i
慢半拍i 2020-12-02 15:54

I have three points on the circumference of a circle:

pt A = (A.x, A.y);
pt B = (B.x, B.y);
pt C = (C.x, C.y);

How do I calculate the cente

6条回答
  •  萌比男神i
    2020-12-02 16:21

    It can be a rather in depth calculation. There is a simple step-by-step here: http://paulbourke.net/geometry/circlesphere/. Once you have the equation of the circle, you can simply put it in a form involving H and K. The point (h,k) will be the center.

    (scroll down a little ways at the link to get to the equations)

提交回复
热议问题