Skip to content

Commit 186ef03

Browse files
committed
check again
1 parent ca34b55 commit 186ef03

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/omath/projection/camera.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ namespace omath::projection
347347
if constexpr (screen_start == ScreenStart::TOP_LEFT_CORNER)
348348
return {screen_pos.x / m_view_port.m_width * 2.f - 1.f, 1.f - screen_pos.y / m_view_port.m_height * 2.f,
349349
screen_pos.z};
350-
else if (screen_start == ScreenStart::BOTTOM_LEFT_CORNER)
350+
else if constexpr (screen_start == ScreenStart::BOTTOM_LEFT_CORNER)
351351
return {screen_pos.x / m_view_port.m_width * 2.f - 1.f,
352352
(screen_pos.y / m_view_port.m_height - 0.5f) * 2.f, screen_pos.z};
353353
else

tests/test_tolerance.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
22

3-
constexpr double TEST_TOLERANCE_STRICT = 0.00001f; // For very strict tests
4-
constexpr double TEST_TOLERANCE_NORMAL = 0.001f; // For normal precision tests
5-
constexpr double TEST_TOLERANCE_ROUNDTRIP = 0.001f; // For round-trip conversions
3+
constexpr double TEST_TOLERANCE_STRICT = 0.00001f; // For very strict tests
4+
constexpr double TEST_TOLERANCE_NORMAL = 0.001f; // For normal precision tests
5+
constexpr double TEST_TOLERANCE_ROUNDTRIP = 0.001f; // For round-trip conversions

0 commit comments

Comments
 (0)