From 50eeb8b7bb2e1777e71f17dac42b31a20caec7bb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 23:17:45 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../CAM/PathSimulator/AppGL/MillPathSegment.cpp | 2 +- src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp | 16 ++++++++-------- src/Mod/CAM/PathSimulator/AppGL/SimDisplay.h | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) 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 {