1 #define d2r(deg) (((deg)*M_PI)/180.0)
2 #define r2d(rad) (((rad)*180.0)/M_PI)
4 #define RSL_FOREACH_VOL(radar, volume, count, index) \
6 for (guint index = 0; index < radar->h.nvolumes; index++) { \
7 Volume *volume = radar->v[index]; \
8 if (volume == NULL) continue; \
11 #define RSL_FOREACH_SWEEP(volume, sweep, count, index) \
13 for (guint index = 0; index < volume->h.nsweeps; index++) { \
14 Sweep *sweep = volume->sweep[index]; \
15 if (sweep == NULL || sweep->h.elev == 0) continue; \
18 #define RSL_FOREACH_RAY(sweep, ray, count, index) \
20 for (guint index = 0; index < sweep->h.nrays; index++) { \
21 Ray *ray = sweep->ray[index]; \
22 if (ray == NULL) continue; \
25 #define RSL_FOREACH_BIN(ray, bin, count, index) \
27 for (guint index = 0; index < ray->h.nbins; index++) { \
28 Range bin = ray->range[index]; \
31 #define RSL_FOREACH_END }