Techdraw: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -375,7 +375,7 @@ std::vector<Base::Vector3d> DrawLeaderLine::getScaledAndRotatedPoints(bool doSc
|
||||
|
||||
double rotationRad{0.0};
|
||||
if (doRotate) {
|
||||
rotationRad = dvp->Rotation.getValue() * M_PI / DegreesHalfCircle;
|
||||
rotationRad = dvp->Rotation.getValue() * std::numbers::pi / DegreesHalfCircle;
|
||||
}
|
||||
|
||||
std::vector<Base::Vector3d> pointsAll = WayPoints.getValues();
|
||||
@@ -409,7 +409,7 @@ DrawLeaderLine::makeCanonicalPoints(const std::vector<Base::Vector3d>& inPoints,
|
||||
|
||||
double rotationRad{0.0};
|
||||
if (doRotate) {
|
||||
rotationRad = - dvp->Rotation.getValue() * M_PI / DegreesHalfCircle;
|
||||
rotationRad = - dvp->Rotation.getValue() * std::numbers::pi / DegreesHalfCircle;
|
||||
}
|
||||
|
||||
std::vector<Base::Vector3d> result;
|
||||
|
||||
Reference in New Issue
Block a user