Need help to calculate a cordinate!
Hello!I have a app that should move a image around on the screen. But the problem is that I do not know how to calculate a new cordinate upon some certain criterias. The criteras that is given is:
Cordinate x1, y1 for eg (40,110)
The length that the image should move (a radie) for eg 25
The angle in what direction the image should move.
I have made a image that perhaps explaine this better at:
http://medlem.spray.se/fredand44/kordinat.gif
So the question is upon the given critera how do I calculate the next cordinate (x2,y2)?
Best Regards
Fredrik
Ps the language I use is Java, but I do not think that that matters.
