46 int deltax, deltay, error, deltaerr;
51 x1 =
MAP_GXWX(map,ox + max_range * cos(oa));
52 y1 =
MAP_GYWY(map,oy + max_range * sin(oa));
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)
TFSIMD_FORCE_INLINE const tfScalar & y() const
TFSIMD_FORCE_INLINE const tfScalar & x() const
double map_calc_range(map_t *map, double ox, double oy, double oa, double max_range)