Ref T412, Ref T227, lists/parts improvements

* Ctor with timestamp
* detect/improved state detection (e.g. "takeoff")
* objects outside range
This commit is contained in:
Klaus Basan
2018-10-29 02:43:31 +01:00
parent 38bd626638
commit 2b51094b02
6 changed files with 72 additions and 17 deletions

View File

@@ -78,6 +78,16 @@ namespace BlackMisc
});
}
template<class OBJ, class CONTAINER>
bool IGeoObjectList<OBJ, CONTAINER>::containsObjectOutsideRange(const ICoordinateGeodetic &coordinate, const CLength &range) const
{
return this->container().containsBy([&](const OBJ & geoObj)
{
const CLength d = coordinate.calculateGreatCircleDistance(geoObj);
return d > range;
});
}
template<class OBJ, class CONTAINER>
bool IGeoObjectList<OBJ, CONTAINER>::containsNullPosition() const
{