mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 02:05:43 +08:00
Ref T778, utility functions
This commit is contained in:
committed by
Mat Sutcliffe
parent
004173b052
commit
cfa96a3aeb
@@ -103,6 +103,11 @@ namespace BlackMisc
|
||||
return a;
|
||||
}
|
||||
|
||||
double CElevationPlane::getAltitudeValue(const CLengthUnit &unit) const
|
||||
{
|
||||
return this->getAltitude().value(unit);
|
||||
}
|
||||
|
||||
bool CElevationPlane::isNull() const
|
||||
{
|
||||
return m_radius.isNull() || CCoordinateGeodetic::isNull();
|
||||
|
||||
@@ -94,6 +94,9 @@ namespace BlackMisc
|
||||
//! Altitude (synonym for geodetic height)
|
||||
Aviation::CAltitude getAltitudeInUnit(const PhysicalQuantities::CLengthUnit &unit) const;
|
||||
|
||||
//! Altitude (synonym for geodetic height)
|
||||
double getAltitudeValue(const PhysicalQuantities::CLengthUnit &unit) const;
|
||||
|
||||
//! Existing value?
|
||||
virtual bool isNull() const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user