mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user