<i id='evBzv'><tr id='evBzv'><dt id='evBzv'><q id='evBzv'><span id='evBzv'><b id='evBzv'><form id='evBzv'><ins id='evBzv'></ins><ul id='evBzv'></ul><sub id='evBzv'></sub></form><legend id='evBzv'></legend><bdo id='evBzv'><pre id='evBzv'><center id='evBzv'></center></pre></bdo></b><th id='evBzv'></th></span></q></dt></tr></i><div id='evBzv'><tfoot id='evBzv'></tfoot><dl id='evBzv'><fieldset id='evBzv'></fieldset></dl></div>

<small id='evBzv'></small><noframes id='evBzv'>

    <tfoot id='evBzv'></tfoot>
  • <legend id='evBzv'><style id='evBzv'><dir id='evBzv'><q id='evBzv'></q></dir></style></legend>
      • <bdo id='evBzv'></bdo><ul id='evBzv'></ul>

        从三个点找到圆心的算法是什么?

        What is the algorithm for finding the center of a circle from three points?(从三个点找到圆心的算法是什么?)
          <tbody id='NtxHn'></tbody>

              <bdo id='NtxHn'></bdo><ul id='NtxHn'></ul>

                  <legend id='NtxHn'><style id='NtxHn'><dir id='NtxHn'><q id='NtxHn'></q></dir></style></legend>

                  <small id='NtxHn'></small><noframes id='NtxHn'>

                  <tfoot id='NtxHn'></tfoot>
                • <i id='NtxHn'><tr id='NtxHn'><dt id='NtxHn'><q id='NtxHn'><span id='NtxHn'><b id='NtxHn'><form id='NtxHn'><ins id='NtxHn'></ins><ul id='NtxHn'></ul><sub id='NtxHn'></sub></form><legend id='NtxHn'></legend><bdo id='NtxHn'><pre id='NtxHn'><center id='NtxHn'></center></pre></bdo></b><th id='NtxHn'></th></span></q></dt></tr></i><div id='NtxHn'><tfoot id='NtxHn'></tfoot><dl id='NtxHn'><fieldset id='NtxHn'></fieldset></dl></div>
                  本文介绍了从三个点找到圆心的算法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在圆周上有三个点:

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

                  如何计算圆心?

                  在 Processing (Java) 中实现它.

                  Implementing it in Processing (Java).

                  我找到了答案并实施了一个可行的解决方案:

                  I found the answer and implemented a working solution:

                   pt circleCenter(pt A, pt B, pt C) {
                  
                      float yDelta_a = B.y - A.y;
                      float xDelta_a = B.x - A.x;
                      float yDelta_b = C.y - B.y;
                      float xDelta_b = C.x - B.x;
                      pt center = P(0,0);
                  
                      float aSlope = yDelta_a/xDelta_a;
                      float bSlope = yDelta_b/xDelta_b;  
                      center.x = (aSlope*bSlope*(A.y - C.y) + bSlope*(A.x + B.x)
                          - aSlope*(B.x+C.x) )/(2* (bSlope-aSlope) );
                      center.y = -1*(center.x - (A.x+B.x)/2)/aSlope +  (A.y+B.y)/2;
                  
                      return center;
                    }
                  

                  推荐答案

                  这可能是一个相当深入的计算.这里有一个简单的分步说明:http://paulbourke.net/geometry/circlesphere/.一旦你有了圆的方程,你就可以简单地把它变成一个包含 H 和 K 的形式.点 (h,k) 将是圆心.

                  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)

                  这篇关于从三个点找到圆心的算法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                  1. <tfoot id='5HT0d'></tfoot>

                        <tbody id='5HT0d'></tbody>

                      <small id='5HT0d'></small><noframes id='5HT0d'>

                        <legend id='5HT0d'><style id='5HT0d'><dir id='5HT0d'><q id='5HT0d'></q></dir></style></legend>
                        <i id='5HT0d'><tr id='5HT0d'><dt id='5HT0d'><q id='5HT0d'><span id='5HT0d'><b id='5HT0d'><form id='5HT0d'><ins id='5HT0d'></ins><ul id='5HT0d'></ul><sub id='5HT0d'></sub></form><legend id='5HT0d'></legend><bdo id='5HT0d'><pre id='5HT0d'><center id='5HT0d'></center></pre></bdo></b><th id='5HT0d'></th></span></q></dt></tr></i><div id='5HT0d'><tfoot id='5HT0d'></tfoot><dl id='5HT0d'><fieldset id='5HT0d'></fieldset></dl></div>
                          <bdo id='5HT0d'></bdo><ul id='5HT0d'></ul>