<legend id='49OYU'><style id='49OYU'><dir id='49OYU'><q id='49OYU'></q></dir></style></legend>

        <small id='49OYU'></small><noframes id='49OYU'>

      1. <tfoot id='49OYU'></tfoot>
        • <bdo id='49OYU'></bdo><ul id='49OYU'></ul>
      2. <i id='49OYU'><tr id='49OYU'><dt id='49OYU'><q id='49OYU'><span id='49OYU'><b id='49OYU'><form id='49OYU'><ins id='49OYU'></ins><ul id='49OYU'></ul><sub id='49OYU'></sub></form><legend id='49OYU'></legend><bdo id='49OYU'><pre id='49OYU'><center id='49OYU'></center></pre></bdo></b><th id='49OYU'></th></span></q></dt></tr></i><div id='49OYU'><tfoot id='49OYU'></tfoot><dl id='49OYU'><fieldset id='49OYU'></fieldset></dl></div>
      3. 从圆心找到一点的角度

        Find angle of a point from center of circle(从圆心找到一点的角度)

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

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

            1. <legend id='J5Ekk'><style id='J5Ekk'><dir id='J5Ekk'><q id='J5Ekk'></q></dir></style></legend>

                  本文介绍了从圆心找到一点的角度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果我有一个像这样的图像 720、720..

                  If I have an image 720, 720 that looks like this..

                  如果中心 x 和 y 分别为 360、360,我如何计算所触摸的 x,y 的角度我看到的很多计算都假设原点是 0,0(左上角),所以我得到不正确的结果.我假设 0 总是在顶部而不是旋转.

                  How do I work out the angle of the touched x,y given that the center x and y are 360, 360 A lot of calculations I see for this assume the origin is 0,0 (which is top left) so I get incorrect results. I am assuming 0 is always to the top and not rotated.

                  推荐答案

                  这样可能更清楚:

                  (Math.toDegrees( Math.atan2(fromLeft - 360.0, 360.0 - fromTop) ) + 360.0) % 360.0
                  

                  添加 360 度转弯并应用模运算符可以得到正角,而 atan2 没有.

                  Adding a 360 degree turn and applying the modulo operator gives you the positive angle, which atan2 does not.

                  这篇关于从圆心找到一点的角度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 中的默认语言环境设置以使其保持一致?)
                    <bdo id='Doj05'></bdo><ul id='Doj05'></ul>

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

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

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

                            <tbody id='Doj05'></tbody>
                        • <tfoot id='Doj05'></tfoot>