diff --git a/src/Mod/CAM/PathSimulator/AppGL/MillPathSegment.cpp b/src/Mod/CAM/PathSimulator/AppGL/MillPathSegment.cpp index bf2a518c8e..53bef6acfd 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/MillPathSegment.cpp +++ b/src/Mod/CAM/PathSimulator/AppGL/MillPathSegment.cpp @@ -30,7 +30,7 @@ using std::numbers::pi; #define N_MILL_SLICES 8 -#define MAX_SEG_DEG (pi/ 2.0f) // 90 deg +#define MAX_SEG_DEG (pi / 2.0f) // 90 deg #define NIN_SEG_DEG (pi / 90.0f) // 2 deg #define SWEEP_ARC_PAD 1.05f #define PX 0 diff --git a/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp b/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp index 1806a9cea0..58ce770fde 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp +++ b/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp @@ -36,7 +36,7 @@ namespace MillSim { - using std::numbers::pi; +using std::numbers::pi; void SimDisplay::InitShaders() { @@ -121,16 +121,16 @@ void SimDisplay::UniformHemisphere(vec3& randVec) float x1 = distr01(generator); float x2 = distr01(generator); float s = sqrt(1.0f - x1 * x1); - randVec[0] = cosf(pi*2 * x2) * s; - randVec[1] = sinf(pi*2 * x2) * s; + randVec[0] = cosf(pi * 2 * x2) * s; + randVec[1] = sinf(pi * 2 * x2) * s; randVec[2] = x1; } void SimDisplay::UniformCircle(vec3& randVec) { float x = distr01(generator); - randVec[0] = cosf(pi*2 * x); - randVec[1] = sinf(pi*2 * x); + randVec[0] = cosf(pi * 2 * x); + randVec[1] = sinf(pi * 2 * x); randVec[2] = 0; } @@ -497,11 +497,11 @@ void SimDisplay::TiltEye(float tiltStep) void SimDisplay::RotateEye(float rotStep) { mEyeRoration += rotStep; - if (mEyeRoration > pi*2) { - mEyeRoration -= pi*2; + if (mEyeRoration > pi * 2) { + mEyeRoration -= pi * 2; } else if (mEyeRoration < 0) { - mEyeRoration += pi*2; + mEyeRoration += pi * 2; } updateDisplay = true; } diff --git a/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.h b/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.h index 6ae4f27a1b..04ff704bc2 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.h +++ b/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.h @@ -34,7 +34,7 @@ namespace MillSim { - using std::numbers::pi; +using std::numbers::pi; struct Point3D {