Fix disjoint
This commit is contained in:
parent
3f27b11bf9
commit
2bdfdc90cc
|
|
@ -88,7 +88,7 @@ public:
|
||||||
constexpr aabb translate(const value_type &vec) const { return {m_mins + vec, m_maxs + vec}; }
|
constexpr aabb translate(const value_type &vec) const { return {m_mins + vec, m_maxs + vec}; }
|
||||||
|
|
||||||
template<typename F>
|
template<typename F>
|
||||||
constexpr bool disjoint(const aabb &other, const F &epsilon = 0) const
|
constexpr bool disjoint(const aabb<F, N> &other, const F &epsilon = 0) const
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < N; i++) {
|
for (size_t i = 0; i < N; i++) {
|
||||||
if (m_maxs[i] < (other.m_mins[i] - epsilon))
|
if (m_maxs[i] < (other.m_mins[i] - epsilon))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue