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
Získejte registraci domén s tld .online, .space, .store, .tech zdarma!
Stačí si k jedné z těchto domén vybrat hosting Plus nebo Mega a registraci domény od nás dostanete za 0 Kč!
Objednat