Fixed all issues detected by the test cases under MinGW - such as usage of abs() -> changed to qAbs(), rounding issues detected during calculations, and changed streaming methods with qDebug() (QDebug vs &QDebug issue).

This commit is contained in:
Klaus Basan
2013-04-30 01:43:14 +02:00
parent c6426a0759
commit 8f5d9263fd
11 changed files with 70 additions and 38 deletions

View File

@@ -46,7 +46,7 @@ private:
*/
static const double &Flattening()
{
static double f = 1 / 298.257223563;
static double f = 1.0 / 298.257223563;
return f;
}
@@ -76,7 +76,7 @@ private:
*/
static const double &e2abs()
{
static double e2abs = abs(e2());
static double e2abs = qAbs(e2());
return e2abs;
}
@@ -86,7 +86,7 @@ private:
*/
static const double &e2m()
{
static double e2m = BlackMisc::Math::CMath::square(1 - Flattening());
static double e2m = BlackMisc::Math::CMath::square(1.0 - Flattening());
return e2m;
}
@@ -95,7 +95,6 @@ private:
*/
CCoordinateTransformation() {}
public:
/*!
* \brief NED to ECEF