PartDesign: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -244,7 +244,7 @@ App::DocumentObjectExecReturn *Draft::execute()
|
||||
if (c.GetType() != GeomAbs_Line)
|
||||
throw Base::TypeError("Neutral plane reference edge must be linear");
|
||||
double a = c.Line().Angle(gp_Lin(c.Value(c.FirstParameter()), pullDirection));
|
||||
if (std::fabs(a - M_PI_2) > Precision::Confusion())
|
||||
if (std::fabs(a - std::numbers::pi/2) > Precision::Confusion())
|
||||
throw Base::ValueError("Neutral plane reference edge must be normal to pull direction");
|
||||
neutralPlane = gp_Pln(c.Value(c.FirstParameter()), pullDirection);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user