From 5aa0e2e9496c0a4f7dcec1851c59907d8786b338 Mon Sep 17 00:00:00 2001 From: Orange Date: Thu, 5 Feb 2026 23:45:41 +0300 Subject: [PATCH] added noexcept --- include/omath/collision/simplex.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/omath/collision/simplex.hpp b/include/omath/collision/simplex.hpp index bbdd9af..c7c99e7 100644 --- a/include/omath/collision/simplex.hpp +++ b/include/omath/collision/simplex.hpp @@ -130,7 +130,7 @@ namespace omath::collision template [[nodiscard]] - static constexpr bool near_zero(const V& v, const float eps = 1e-7f) + static constexpr bool near_zero(const V& v, const float eps = 1e-7f) noexcept { return v.dot(v) <= eps * eps; } @@ -146,7 +146,7 @@ namespace omath::collision } [[nodiscard]] - constexpr bool handle_line(VectorType& direction) + constexpr bool handle_line(VectorType& direction) noexcept { const auto& a = m_points[0]; const auto& b = m_points[1];