Merge pull request #20496 from hyarion/refactor/cppify-constants

This commit is contained in:
Chris Hennes
2025-03-29 18:43:40 -05:00
committed by GitHub
322 changed files with 1791 additions and 1654 deletions

View File

@@ -1120,7 +1120,7 @@ std::shared_ptr<ASMTJoint> AssemblyObject::makeMbdJointOfType(App::DocumentObjec
}
else if (type == JointType::Angle) {
double angle = fabs(Base::toRadians(getJointDistance(joint)));
if (fmod(angle, 2 * M_PI) < Precision::Confusion()) {
if (fmod(angle, 2 * std::numbers::pi) < Precision::Confusion()) {
return CREATE<ASMTParallelAxesJoint>::With();
}
else {