问题描述
大家好。
抱歉要简短,但必须离开。
如果我有两点坐标(打开)计算机屏幕),我如何计算连接它们的线的角度?
我知道,我的术语含糊不清,在某些情况下完全错误(例如它会是一个错误的间隔,而不是一条线)但希望你明白了。
Hi all.
Sorry to be brief, but have to leave.
If I have the coordinates of two points (on the computer screen), how do I calculate the angle of the line which joins them?
I know, my terms are vague and in some cases completely wrong (for instance it would be an "interval", not a line) but hopefully you get the idea.
推荐答案
谢谢。几年来我几乎没有做过很多触发。
我已经计算出水平和垂直距离(X和Y),我经常使用这些来计算直线距离(古老的Pythagorus),但不知道如何解决这个角度。
我还不确定。我需要能够完整的循环。也就是说,角度一直到360度(或者恰好在下方,因为那当然与零相同)。这会有用吗?在这种情况下,不确定你的意思是反向。 (温柔,已经很久了......)
Thanks. Haven''t done a lot of trig for a few years.
I had already worked out the horizontal and vertical distance (X and Y), and I routinely use these to calculate the straight-line distance (good old Pythagorus), but didn''t know how to work out the angle.
I''m still not sure. I need to be able to go the full circle. That is, angles all the way around to 360 degrees (or just under, since that would be the same as zero of course). Will this work? Not sure what you mean by "inverse", in this context. (Be gentle, it has been a long time...)
取决于你的参考框架(我的参考框架是x轴)
Depends on your frame of reference (my frame of reference is the x axis)
嗯......让我们假设我们现在看到@ as theta(一般角度变量)
tan @ = X / Y;
so @ = tan inverse(X / Y)
i必须输入反向,因为我不能输入在上标-1中:D
希望数学能很好地适合你:D
欢呼
Well... lets assume that we now see @ as theta (the general angle variable)
tan @ = X/Y;
so @ = tan inverse (X/Y)
i have to type in inverse, because i cant type in -1 in superscript :D
Hope the math comes along well for you :D
cheers
这篇关于如何计算线的角度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!