27.08.2010, 12:56
The best way would be using atan2, because you do not have to calc a lot for this. It requires the x and y difference between your two points.
All in all you could get the angle like this:
atan2(x1 - x2, y1 - y2)
with x1/y1 being your first checkpoint, and x2/y2 the other
All in all you could get the angle like this:
atan2(x1 - x2, y1 - y2)
with x1/y1 being your first checkpoint, and x2/y2 the other