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

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

    <tfoot id='vnwlj'></tfoot>

      <bdo id='vnwlj'></bdo><ul id='vnwlj'></ul>
    1. <legend id='vnwlj'><style id='vnwlj'><dir id='vnwlj'><q id='vnwlj'></q></dir></style></legend>

      从圆心找到一点的角度

      时间:2023-09-30

      <small id='732He'></small><noframes id='732He'>

          <tfoot id='732He'></tfoot>

            • <bdo id='732He'></bdo><ul id='732He'></ul>
              <legend id='732He'><style id='732He'><dir id='732He'><q id='732He'></q></dir></style></legend>

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

                问题描述

                如果我有一个像这样的图像 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.

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

                上一篇:Java中是否有像Rectangle类这样的circle类 下一篇:在 Java 中绘制谢尔宾斯基三角形

                相关文章

                最新文章

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

                <tfoot id='x8qCK'></tfoot>
                <legend id='x8qCK'><style id='x8qCK'><dir id='x8qCK'><q id='x8qCK'></q></dir></style></legend>
              • <small id='x8qCK'></small><noframes id='x8qCK'>

                  • <bdo id='x8qCK'></bdo><ul id='x8qCK'></ul>