mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Move Math constants into class (to be consistent with other constants), tested against minGW / gcc 4.7.2 and fixed various issues (mainly initializer lists, unused variables). BlackMisc compiles now in MinGW, but still issues (especially with qDebug() friend methods)
This commit is contained in:
@@ -142,7 +142,7 @@ bool CInterpolator::stateNow(TPlaneState *state)
|
||||
CAngle CInterpolator::normalizeRadians(const CAngle &angle) const
|
||||
{
|
||||
double radian = angle.value(CAngleUnit::rad());
|
||||
radian = radian - BlackMisc::Math::TwoPI * floor(0.5 + radian / BlackMisc::Math::TwoPI);
|
||||
radian = radian - BlackMisc::Math::CMath::PI2() * floor(0.5 + radian / BlackMisc::Math::CMath::PI2());
|
||||
return CAngle(radian, CAngleUnit::rad());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user