History: PointDirection
float PointDirection( double x1, double y1, double x2, double y2 )
Returns the angle between two points.
Code
float PointDirection( double x1, double y1, double x2, double y2 )
{
	float dir = (float)( (180./3.14159)*atan2((y1-y2),(x2-x1)) );

	if( dir < 0.0 ) dir = 360.0 + dir;

	return dir;
}
Code.Tode.cz by Henry - 2014