d/ns: Some clang-tidy cleanups

This commit is contained in:
Ryan Pavlik 2020-10-21 17:05:52 -05:00
parent 97d711a9ef
commit 83b91ea4a9
2 changed files with 5 additions and 5 deletions

View file

@ -189,14 +189,14 @@ OpticalSystem::RenderUVToDisplayUV(const Vector3 &inputUV)
Vector2 Vector2
OpticalSystem::SolveDisplayUVToRenderUV(const Vector2 &inputUV, OpticalSystem::SolveDisplayUVToRenderUV(const Vector2 &inputUV,
Vector2 initailGuess, Vector2 const &initialGuess,
int iterations) int iterations)
{ {
float epsilon = 0.0001f; static const float epsilon = 0.0001f;
Vector2 curCameraUV; Vector2 curCameraUV;
curCameraUV.x = initailGuess.x; curCameraUV.x = initialGuess.x;
curCameraUV.y = initailGuess.y; curCameraUV.y = initialGuess.y;
Vector2 curDisplayUV; Vector2 curDisplayUV;
for (int i = 0; i < iterations; i++) { for (int i = 0; i < iterations; i++) {

View file

@ -33,7 +33,7 @@ public:
Vector2 Vector2
SolveDisplayUVToRenderUV(const Vector2 &inputUV, SolveDisplayUVToRenderUV(const Vector2 &inputUV,
Vector2 initailGuess, Vector2 const &initialGuess,
int iterations); int iterations);
Vector2 Vector2