46 int deltax, deltay, error, deltaerr;
54 if(
abs(y1-y0) >
abs(x1-x0))
90 return sqrt((x-x0)*(x-x0) + (y-y0)*(y-y0)) * map->
scale;
95 return sqrt((x-x0)*(x-x0) + (y-y0)*(y-y0)) * map->
scale;
98 while(x != (x1 + xstep * 1))
102 if(2*error >= deltax)
111 return sqrt((x-x0)*(x-x0) + (y-y0)*(y-y0)) * map->
scale;
116 return sqrt((x-x0)*(x-x0) + (y-y0)*(y-y0)) * map->
scale;
#define MAP_VALID(map, i, j)
#define MAP_INDEX(map, i, j)
INLINE Rall1d< T, V, S > sqrt(const Rall1d< T, V, S > &arg)
double map_calc_range(map_t *map, double ox, double oy, double oa, double max_range)
INLINE Rall1d< T, V, S > abs(const Rall1d< T, V, S > &x)
INLINE Rall1d< T, V, S > cos(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > sin(const Rall1d< T, V, S > &arg)