mirror of https://github.com/KLayout/klayout.git
More numerical stability for reproducible tests drcSimpleTests:56 and 57 (45 degree angles)
This commit is contained in:
parent
5057b0a626
commit
fb60212a5b
|
|
@ -52,13 +52,13 @@ db::ICplxTrans OrthogonalTransformationReducer::reduce (const db::ICplxTrans &tr
|
||||||
} else {
|
} else {
|
||||||
db::ICplxTrans res;
|
db::ICplxTrans res;
|
||||||
double a = trans.angle ();
|
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);
|
res.angle (a - a90);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
db::Trans OrthogonalTransformationReducer::reduce (const db::Trans &trans) const
|
db::Trans OrthogonalTransformationReducer::reduce (const db::Trans &) const
|
||||||
{
|
{
|
||||||
return db::Trans ();
|
return db::Trans ();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue