Gui: Use std::numeric_limits and std::numbers instead of defines

This commit is contained in:
Benjamin Nauck
2025-03-27 18:59:58 +01:00
parent ae686942a7
commit 34bc1d45ea
33 changed files with 204 additions and 168 deletions

View File

@@ -155,7 +155,7 @@ void ViewProviderAnnotation::onChanged(const App::Property* prop)
}
}
else if (prop == &Rotation) {
pRotationXYZ->angle = (Rotation.getValue()/360)*(2*M_PI);
pRotationXYZ->angle = (Rotation.getValue()/360)*(2*std::numbers::pi);
}
else {
ViewProviderDocumentObject::onChanged(prop);