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

This commit is contained in:
Benjamin Nauck
2025-03-27 19:00:41 +01:00
parent fd28d6f27f
commit d0dc4c00ef
22 changed files with 153 additions and 134 deletions

View File

@@ -116,12 +116,14 @@ namespace
Base::Rotation anglesToRotation(double xAngle, double yAngle, double zAngle)
{
using std::numbers::pi;
static Base::Vector3d a(1, 0, 0);
static Base::Vector3d b(0, 1, 0);
static int count = 0;
double xRad = xAngle * D_PI / 180.0;
double yRad = yAngle * D_PI / 180.0;
double zRad = zAngle * D_PI / 180.0;
double xRad = xAngle * pi / 180.0;
double yRad = yAngle * pi / 180.0;
double zRad = zAngle * pi / 180.0;
if (xAngle != 0) {
a[1] = 0;
a[2] = 0;