Ref T505, heading normalize

This commit is contained in:
Klaus Basan
2019-02-08 15:36:06 +01:00
committed by Mat Sutcliffe
parent b476ce4894
commit 8bd6fdf9fc
2 changed files with 25 additions and 5 deletions

View File

@@ -87,12 +87,18 @@ namespace BlackMisc
//! Get reference north (magnetic or true)
ReferenceNorth getReferenceNorth() const { return m_north; }
//! Normalize to [0, 359.99]
void normalizeTo360Degrees();
//! Normalize to +- 180deg, [-179.99, 180.0]
void normalizeToPlusMinus180Degrees();
//! As [-179.99, 180.0] normalized heading
CHeading normalizedToPlusMinus180Degrees() const;
//! As [0, 359.99] normalized heading
CHeading normalizedTo360Degrees() const;
//! Register metadata
static void registerMetadata();