mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +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();
|
||||
|
||||
@@ -49,6 +49,9 @@ namespace BlackMisc
|
||||
//! Altitude (synonym for geodetic height)
|
||||
const Aviation::CAltitude &getAltitude() const { return this->geodeticHeight(); }
|
||||
|
||||
//! Altitude (synonym for geodetic height)
|
||||
Aviation::CAltitude getAltitudeInUnit(const PhysicalQuantities::CLengthUnit &unit) const;
|
||||
|
||||
//! Existing value?
|
||||
virtual bool isNull() const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user