Ref T709, improved normalization and space pressed handling, unit test

This commit is contained in:
Klaus Basan
2019-08-09 23:41:01 +02:00
committed by Mat Sutcliffe
parent 9cb9556d87
commit 4830bbc646
4 changed files with 88 additions and 15 deletions

View File

@@ -196,9 +196,11 @@ namespace XSwiftBus
static bool isZeroTo360(double v);
//! @}
//! Normalize to (-180, 180] degress @{
static float normalizeToPlusMinus180DegF(float v);
//! Normalize to (-180, 180] or [0, 360) degrees @{
static float normalizeToPlusMinus180DegF(float v);
static double normalizeToPlusMinus180DegD(double v);
static float normalizeToZero360DegF(float v);
static double normalizeToZero360DegD(double v);
//! @}
//! Check the position if values are valid @{