mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
d/ns: Some clang-tidy cleanups
This commit is contained in:
parent
97d711a9ef
commit
83b91ea4a9
|
@ -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++) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue