Advertisement

How could I do the following?

Started by November 25, 2002 12:10 PM
1 comment, last by DevLiquidKnight 22 years, 2 months ago
I know the equation to find the angle of a point on a coordinate system. I was wondering though is there a equation of forumal to find a X and Y coordinate based on an angle? Does anyone know how how I do this. The way I find the angle of an X and Y coordinate uses trigonometry. I don''t have the exact equation at the moment but anyways. Does anyone know? Don''t click me! Killer Eagle Software
x = r*cos α
y = r*sin α

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Advertisement
... where a is the angle and r is the distance between the origin and the point.

This topic is closed to new replies.

Advertisement