如何计算旋转轴上的点? [英] How to calculate a point on a rotated axis?

查看:83
本文介绍了如何计算旋转轴上的点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在旋转轴上计算指定距离的点(X,Y)?我知道我希望点移动"沿哪个角度(以度为单位).

How can I calculate a point (X,Y) a specified distance away, on a rotated axis? I know what angle I'd like the point "moving" along (in degrees).

推荐答案

x = cos(a) * d
y = sin(a) * d

其中a是角度,d是距离.

where a is the angle and d is the distance.

如果三角函数的弧度为度的弧度,则必须除以180/pi来转换角度.

If the trigonometry functions takes radians intead of degrees, you have to convert the angle by dividing by 180/pi.

这篇关于如何计算旋转轴上的点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆