mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 02:16:04 +08:00
Ref T231, utility functions
* altitude * situation * callsign set * elevation set
This commit is contained in:
@@ -100,6 +100,11 @@ namespace BlackMisc
|
||||
//! Constructor by CLength
|
||||
CAltitude(const PhysicalQuantities::CLength &altitude, ReferenceDatum datum) : CLength(altitude), m_datum(datum) {}
|
||||
|
||||
//! Altitude with offset
|
||||
//! \remark null offset adds nothing
|
||||
//! \remark epsilon 0 (zero) values ignored
|
||||
CAltitude withOffset(const CLength &offset) const;
|
||||
|
||||
//! AGL Above ground level?
|
||||
bool isAboveGroundLevel() const { return AboveGround == this->m_datum; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user