diff --git a/include/omath/projection/camera.hpp b/include/omath/projection/camera.hpp index e1e7955..1d1994f 100644 --- a/include/omath/projection/camera.hpp +++ b/include/omath/projection/camera.hpp @@ -309,8 +309,9 @@ namespace omath::projection template [[nodiscard]] constexpr static bool is_ndc_out_of_bounds(const Type& ndc) noexcept { - constexpr float eps = 1e-5f; - return std::ranges::any_of(ndc.raw_array(), [](const auto& val) { return val < -1.0f - eps || val > 1.0f + eps; }); + constexpr auto eps = std::numeric_limits::epsilon(); + return std::ranges::any_of(ndc.raw_array(), + [](const auto& val) { return val < -1.0f - eps || val > 1.0f + eps; }); } // NDC REPRESENTATION: