[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-05-22 23:17:45 +00:00
parent 15ee156b23
commit 50eeb8b7bb
3 changed files with 10 additions and 10 deletions

View File

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

View File

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

View File

@@ -34,7 +34,7 @@
namespace MillSim
{
using std::numbers::pi;
using std::numbers::pi;
struct Point3D
{