mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T236, isNull default implementation of ICoordinateGeodetic
Also interface can be checked agains null
This commit is contained in:
@@ -24,8 +24,7 @@ namespace BlackMisc
|
||||
return s.arg(this->latitude().valueRoundedWithUnit(6, i18n),
|
||||
this->longitude().valueRoundedWithUnit(6, i18n),
|
||||
this->geodeticHeight().valueRoundedWithUnit(6, i18n),
|
||||
m_radius.valueRoundedWithUnit(2, i18n)
|
||||
);
|
||||
m_radius.valueRoundedWithUnit(2, i18n));
|
||||
}
|
||||
|
||||
const CAltitude &CElevationPlane::getAltitudeIfWithinRadius(const ICoordinateGeodetic &coordinate) const
|
||||
@@ -40,6 +39,7 @@ namespace BlackMisc
|
||||
|
||||
bool CElevationPlane::isWithinRange(const ICoordinateGeodetic &coordinate) const
|
||||
{
|
||||
if (coordinate.isNull()) { return false; }
|
||||
if (isNull()) { return false; }
|
||||
const CLength d = this->calculateGreatCircleDistance(coordinate);
|
||||
const bool inRange = (m_radius >= d);
|
||||
|
||||
Reference in New Issue
Block a user