【问题标题】:Find the point with radius and angle找到具有半径和角度的点
【发布时间】:2011-02-22 16:05:24
【问题描述】:

我不是几何天才,我想用radiusangleas3 中找到一个点,但我不记得规则,我知道这应该很简单!

这是一个例子:

alt text http://img297.imageshack.us/img297/4879/examplepr.png

【问题讨论】:

    标签: actionscript-3 geometry


    【解决方案1】:
    as3.x = centerX + radius * cos(angle)
    as3.y = centerY + radius * sin(angle)
    

    请注意,链接到的图片中的旋转是“负方向”。即,增加角度会产生逆时针旋转。

    【讨论】:

    【解决方案2】:

    设 x0, y0 为所考虑的圆的中心,t 为与 x 轴(右水平)逆时针方向的角度 theta。

    你要找的点是那么

    x = x0 + r*cos(t)
    y = y0 + r*sin(t)
    

    【讨论】:

      【解决方案3】:

      在进行计算之前,您必须将计算器调整为度数模式 更可能你会用度数来表示角度

      【讨论】:

        猜你喜欢
        • 2012-08-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-12-15
        • 2022-10-17
        • 1970-01-01
        • 2023-04-03
        • 1970-01-01
        相关资源
        最近更新 更多