1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-11 08:04:25 +00:00

Fix numerical issue on Win32

This commit is contained in:
Alessandro Ranellucci
2014-08-04 14:55:13 +02:00
parent 2449b22f76
commit 04d2e4124f
+1 -1
View File
@@ -112,7 +112,7 @@ double
Line::direction() const
{
double atan2 = this->atan2_();
return (atan2 == PI) ? 0
return (fabs(atan2 - PI) < EPSILON) ? 0
: (atan2 < 0) ? (atan2 + PI)
: atan2;
}