From 83b91ea4a938c05004ae1cb1b97c07252caa7052 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Wed, 21 Oct 2020 17:05:52 -0500 Subject: [PATCH] d/ns: Some clang-tidy cleanups --- .../north_star/distortion/deformation_northstar.cpp | 8 ++++---- .../drivers/north_star/distortion/deformation_northstar.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xrt/drivers/north_star/distortion/deformation_northstar.cpp b/src/xrt/drivers/north_star/distortion/deformation_northstar.cpp index 87d336e3d..0e918c623 100644 --- a/src/xrt/drivers/north_star/distortion/deformation_northstar.cpp +++ b/src/xrt/drivers/north_star/distortion/deformation_northstar.cpp @@ -189,14 +189,14 @@ OpticalSystem::RenderUVToDisplayUV(const Vector3 &inputUV) Vector2 OpticalSystem::SolveDisplayUVToRenderUV(const Vector2 &inputUV, - Vector2 initailGuess, + Vector2 const &initialGuess, int iterations) { - float epsilon = 0.0001f; + static const float epsilon = 0.0001f; Vector2 curCameraUV; - curCameraUV.x = initailGuess.x; - curCameraUV.y = initailGuess.y; + curCameraUV.x = initialGuess.x; + curCameraUV.y = initialGuess.y; Vector2 curDisplayUV; for (int i = 0; i < iterations; i++) { diff --git a/src/xrt/drivers/north_star/distortion/deformation_northstar.h b/src/xrt/drivers/north_star/distortion/deformation_northstar.h index a6b0070d0..77db03bcd 100644 --- a/src/xrt/drivers/north_star/distortion/deformation_northstar.h +++ b/src/xrt/drivers/north_star/distortion/deformation_northstar.h @@ -33,7 +33,7 @@ public: Vector2 SolveDisplayUVToRenderUV(const Vector2 &inputUV, - Vector2 initailGuess, + Vector2 const &initialGuess, int iterations); Vector2