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

This commit is contained in:
Benjamin Nauck
2025-03-27 19:02:45 +01:00
parent f5244d404c
commit bfdaa9aab2
40 changed files with 243 additions and 220 deletions

View File

@@ -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;