Elaboradar 0.1
|
◆ closest()
Get the closest position to an azimuth angle.
Definizione alla linea 48 del file azimuth_resample.cpp. 49{
51
52 // Result between the end and the beginning: assume it falls between
53 // first and last
56
57 // Exact match: return the Position
58 if (i->first == azimuth)
59 return *i;
60
61 // Return the closest between the previous element and this one
62 std::map<double, unsigned>::const_iterator prev = i;
63 --prev;
64 return closest_of_two(azimuth, *prev, *i);
65}
std::map< double, unsigned > by_angle map azimuth angles to beam indices Definition: azimuth_resample.h:24 Referenzia by_angle. |