More numerical stability for reproducible tests drcSimpleTests:56 and 57 (45 degree angles)

This commit is contained in:
Matthias Koefferlein 2022-11-25 22:36:19 +01:00
parent 5057b0a626
commit fb60212a5b
1 changed files with 2 additions and 2 deletions

View File

@ -52,13 +52,13 @@ db::ICplxTrans OrthogonalTransformationReducer::reduce (const db::ICplxTrans &tr
} else {
db::ICplxTrans res;
double a = trans.angle ();
double a90 = floor (a / 90.0 + 0.5) * 90.0;
double a90 = floor (a / 90.0 + 0.5 + db::epsilon) * 90.0;
res.angle (a - a90);
return res;
}
}
db::Trans OrthogonalTransformationReducer::reduce (const db::Trans &trans) const
db::Trans OrthogonalTransformationReducer::reduce (const db::Trans &) const
{
return db::Trans ();
}