mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fix numerical issue on Win32
This commit is contained in:
@@ -112,7 +112,7 @@ double
|
|||||||
Line::direction() const
|
Line::direction() const
|
||||||
{
|
{
|
||||||
double atan2 = this->atan2_();
|
double atan2 = this->atan2_();
|
||||||
return (atan2 == PI) ? 0
|
return (fabs(atan2 - PI) < EPSILON) ? 0
|
||||||
: (atan2 < 0) ? (atan2 + PI)
|
: (atan2 < 0) ? (atan2 + PI)
|
||||||
: atan2;
|
: atan2;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user