I'm too dumb to solve basic algebra, would be cool if you could help me out with this
usually I got the rotation and try to get position I want to rotate the object to
var rads : Number = rotation / 180 * Math.PI;
position.x = Math.cos(rads);
position.y = Math.sin(rads);
this time I got the position but I want to get the rotation but everything I tried is false, thanks in advance for your help
EDIT: for those who got the same problem and use actionscript 3 (or anything that also has this function) experiment with Math.atan2() it can save you a lot of trouble - faster and easier