I have been searching on the net and within the forum and i just cant work out how to calculate the angle between two points.
In flash i would do this:
var angle : Number = Math.atan2(a.y - b.y, a.x - b.x) * 180 / Math.PI;
In openframeworks im doing this:
float angle = atan2(_particles[i]._y - _y, _particles[i]._x-_x) * 180 / PI;
But it just not working. How can i get the angle between two points?
Thanks for any help.