Fixed usage of std::abs() in polar pattern
This commit is contained in:
parent
4b2f107cc1
commit
4c9b9adde6
|
@ -75,7 +75,7 @@ const std::list<gp_Trsf> PolarPattern::getTransformations(const std::vector<App:
|
|||
bool reversed = Reversed.getValue();
|
||||
|
||||
double offset;
|
||||
if (std::abs(angle - 360.0) < Precision::Confusion())
|
||||
if (std::fabs(angle - 360.0) < Precision::Confusion())
|
||||
offset = Base::toRadians<double>(angle) / occurrences; // Because e.g. two occurrences in 360 degrees need to be 180 degrees apart
|
||||
else
|
||||
offset = Base::toRadians<double>(angle) / (occurrences - 1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user