#include "aux.h"
Go to the source code of this file.
Functions | |
double | dist (double x0, double y0, double x1, double y1) |
|
return the distance between the two points Definition at line 2 of file aux.cpp. Referenced by calc_step(), Runtime::crop(), dist(), and newpoint(). 00003 { 00004 double x = x1-x0; 00005 double y = y1-y0; 00006 x*=x; 00007 y*=y; 00008 double d = x+y; 00009 d = (double) (sqrt(d) + 1); 00010 return d; 00011 }
|