Ref T709, normalize degrees to +/i180degs

This commit is contained in:
Klaus Basan
2019-07-31 19:17:51 +02:00
committed by Mat Sutcliffe
parent 5e9be9e96e
commit 6be0586fbc
2 changed files with 23 additions and 2 deletions

View File

@@ -193,6 +193,11 @@ namespace XSwiftBus
static bool isPlusMinus180(double v);
//! @}
//! Normalize to (-180, 180] degress @{
static float normalizeToPlusMinus180DegF(float v);
static double normalizeToPlusMinus180DegD(double v);
//! @}
//! Check the position if values are valid @{
static bool isValidPosition(const XPMPPlanePosition_t &position);
static bool isValidPosition(const XPLMCameraPosition_t *camPos);