vit*_*tto 10 geometry actionscript-3
我不是在几何天才,我想找到一个点as3
与radius
和angle
,但我不记得的规则,我知道这应该是简单的!
这是一个例子:
alt text http://img297.imageshack.us/img297/4879/examplepr.png
aio*_*obe 22
as3.x = centerX + radius * cos(angle)
as3.y = centerY + radius * sin(angle)
Run Code Online (Sandbox Code Playgroud)
请注意,链接到的图片中的旋转处于"负方向".即,角度的增加产生逆时针旋转.