angle between two points
-
given two coordinates, i.e. startx & starty, endx & endy: double dAngle = (180 * (1 + atan2(endy-starty, endx-startx) / PI))-90;
Whatever he was thinking, it's certainly not that! :( Think about it more! However you did have a good idea when assuming he was meaning the angle difference from the origin! I didn't even think of it!
-
given two coordinates, i.e. startx & starty, endx & endy: double dAngle = (180 * (1 + atan2(endy-starty, endx-startx) / PI))-90;
It would make sense that a cab driver would know this. Now we all want to know how much you'll charge us to take us on the traversal.:-D
"You have an arrow in your butt!" - Fiona:cool:
Welcome to CP in your language. Post the unicode version in My CP Blog [ ^ ] now.People who don't understand how awesome Firefox is have never used CPhog[^]CPhog. The act of using CPhog (Firefox)[^] alone doesn't make Firefox cool. It opens your eyes to the possibilities and then you start looking for other things like CPhog (Firefox)[^] and your eyes are suddenly open to all sorts of useful things all through Firefox. - (Self Quote)
-
Lets be pedantic... there is no angle as you didn't give a relative point which you want to calculate the angle against... so there is a straight line between the two points that has to be taken as the horizontal... I suppose one could argue that the angle is 0 then. Regards, Brian Dela :-) Blog^ Co-author of The Outlook Answer Book... Go on, order^ it today!
-
To compute an angle, you need to specify atleast 3 points. Otherwise, there will be alot of posibble angle. "Courage choose who will follow, Fate choose who will lead" - Lord Gunner, Septerra Core "Press any key to continue, where's the ANY key ?" - Homer Simpsons Drinking gives me amazing powers of insight. I can solve all the worlds problems when drunk, but can never remember the solutions in the morning. - Michael P Butler to Paul Watson on 12/08/03
-
For two points, you can compute angle only in Celsius Degrees!! :->
-
I was tempted to start another subject, just to beat you, requesting the angle between one point. Finally, I just give up, because someone else coud beat me saying he need an agle between no points! :-D
-
Easy, point A ----- Point B angle is 180 since depending upon your vantage, you are either going or comming but if you return you are going or comming. Then the agnle of the dangle changes at Point C when leaving the bush toward the mountains of points D & E. Has that cleared up your answer?
-
given two coordinates, i.e. startx & starty, endx & endy: double dAngle = (180 * (1 + atan2(endy-starty, endx-startx) / PI))-90;
Not for all points...
-
I was tempted to start another subject, just to beat you, requesting the angle between one point. Finally, I just give up, because someone else coud beat me saying he need an agle between no points! :-D
The angle between no points is NULL.
-
The angle between no points is NULL.
Thanks! And the angle between one point? Shouldn't be NULL too? Or maybe null... or is it 0 ?