mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Ref T259, Ref T243 unit function for elevation plane
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user