PathSimulator: Fix many compiler warnings

This commit is contained in:
wmayer
2024-05-23 08:51:22 +02:00
committed by wwmayer
parent d90a78391b
commit 68889f05ec
13 changed files with 56 additions and 59 deletions

View File

@@ -56,24 +56,11 @@ float MillPathSegment::mResolution = 1;
float MillPathSegment::mSmallRadStep = (PI / 8);
MillPathSegment::MillPathSegment(EndMill* _endmill, MillMotion* from, MillMotion* to)
: mShearMat {1.0f,
0.0f,
0.0f,
0.0f,
0.0f,
1.0f,
0.0f,
0.0f,
0.0f,
0.0f,
1.0f,
0.0f,
0.0f,
0.0f,
0.0f,
1.0f}
: mShearMat {{1.0F, 0.0F, 0.0F, 0.0F},
{0.0F, 1.0F, 0.0F, 0.0F},
{0.0F, 0.0F, 1.0F, 0.0F},
{0.0F, 0.0F, 0.0F, 1.0F}}
{
MotionPosToVec(mStartPos, from);
MotionPosToVec(mDiff, to);
vec3_sub(mDiff, mDiff, mStartPos);
@@ -239,4 +226,4 @@ float MillPathSegment::SetQuality(float quality, float maxStockDimension)
}
return mResolution;
}
} // namespace MillSim
} // namespace MillSim