mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
added noexcept
This commit is contained in:
@@ -130,7 +130,7 @@ namespace omath::collision
|
|||||||
|
|
||||||
template<class V>
|
template<class V>
|
||||||
[[nodiscard]]
|
[[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;
|
return v.dot(v) <= eps * eps;
|
||||||
}
|
}
|
||||||
@@ -146,7 +146,7 @@ namespace omath::collision
|
|||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
constexpr bool handle_line(VectorType& direction)
|
constexpr bool handle_line(VectorType& direction) noexcept
|
||||||
{
|
{
|
||||||
const auto& a = m_points[0];
|
const auto& a = m_points[0];
|
||||||
const auto& b = m_points[1];
|
const auto& b = m_points[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user