28 #define _CRT_SECURE_NO_DEPRECATE 45 int dist = (int)sqrt( (
double)(dx*dx + dy*dy) );
53 int dx = abs( a_x - a_x1 );
54 int dy = abs( a_y - a_y1 );
59 dist = dx + (dy * dy) / (2 * dx);
61 else dist = dy + (dx * dx) / (2 * dy);
int CalcDistPythagoras(int a_x, int a_y, int a_x1, int a_y1)
Calculate distance using Pythagoras.
CfgStr cfg_dumpvegjunefile
int CalcDistPythagorasApprox(int a_x, int a_y, int a_x1, int a_y1)
Calculate distance using the Pythagoras approximation.
String configurator entry class.
Bool configurator entry class.
CfgStr cfg_dumpvegjanfile