Help with Math
Hi,
my idea is visualising but i’m stuck at a very simple math problem:
From the center (200,150) i want to spawn objects an move them direction mouseclick until they hit the border of the screen.
I’m able to increment x, y correctly, what i’m not able to do is to let the object move in the correct direction the mouse was clicked.
Hope someone can help me 
float dy = from.getY() – to.getY();
return (float) Math.toDegrees(Math.atan2(dy, dx)) – 90;