mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 15:03:27 +00:00
added noexcept
This commit is contained in:
@@ -130,7 +130,7 @@ namespace omath::collision
|
||||
|
||||
template<class V>
|
||||
[[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];
|
||||
|
||||
Reference in New Issue
Block a user