FEM: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user