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

This commit is contained in:
Benjamin Nauck
2025-03-27 19:01:53 +01:00
parent 075a1362ed
commit c2e885d774
16 changed files with 47 additions and 38 deletions

View File

@@ -327,7 +327,7 @@ void fixSketchSupport (Sketcher::SketchObject* sketch)
// Offset to base plane
// Find out which direction we need to offset
double a = sketchVector.GetAngle(pnt);
if ((a < -M_PI_2) || (a > M_PI_2))
if ((a < -std::numbers::pi/2) || (a > std::numbers::pi/2))
offset *= -1.0;
std::string Datum = doc->getUniqueObjectName("DatumPlane");