mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-03 06:40:38 +08:00
change to global epsilon
This commit is contained in:
parent
929da2e6d8
commit
196c20a55f
@ -59,7 +59,7 @@ void TransformationMatrix::swap(TransformationMatrix &other)
|
|||||||
|
|
||||||
bool TransformationMatrix::operator==(const TransformationMatrix &other) const
|
bool TransformationMatrix::operator==(const TransformationMatrix &other) const
|
||||||
{
|
{
|
||||||
double eps = 1e-14;
|
double const eps = EPSILON;
|
||||||
bool is_equal = true;
|
bool is_equal = true;
|
||||||
is_equal &= (abs(this->m11 - other.m11) < eps);
|
is_equal &= (abs(this->m11 - other.m11) < eps);
|
||||||
is_equal &= (abs(this->m12 - other.m12) < eps);
|
is_equal &= (abs(this->m12 - other.m12) < eps);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user