|
◆ closest()
pair< double, unsigned > radarelab::algo::azimuthresample::AzimuthIndex::closest |
( |
double |
azimuth | ) |
const |
Get the closest position to an azimuth angle.
- Parametri
-
[in] | azimuth | - Searched value |
- Restituisce
- pair value
Definizione alla linea 48 del file azimuth_resample.cpp.
50 auto i = by_angle.lower_bound(azimuth);
58 if (i->first == azimuth)
62 std::map<double, unsigned>::const_iterator prev = i;
64 return closest_of_two(azimuth, *prev, *i);
std::map< double, unsigned > by_angle map azimuth angles to beam indices
|