Ref T259, Ref T243 unit function for elevation plane

This commit is contained in:
Klaus Basan
2018-03-20 15:13:01 +01:00
parent 06b07ac4c6
commit 476768f6ec
2 changed files with 10 additions and 0 deletions

View File

@@ -32,6 +32,13 @@ namespace BlackMisc
return (isWithinRange(coordinate)) ? geodeticHeight() : CAltitude::null();
}
CAltitude CElevationPlane::getAltitudeInUnit(const CLengthUnit &unit) const
{
CAltitude a = this->geodeticHeight();
a.switchUnit(unit);
return a;
}
bool CElevationPlane::isNull() const
{
return m_radius.isNull() || CCoordinateGeodetic::isNull();