Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
AABB.hpp File Reference

Classes

class  mundy::AABB< Scalar, MinPointType, MaxPointType >

Namespaces

namespace  mundy

Concepts

concept  mundy::ValidAABBType
 Concept to determine if a type is a valid AABB type.

Functions

Non-member functions for ValidAABBType objects
template<ValidAABBType T1, ValidAABBType T2>
constexpr bool mundy::is_close (const T1 &a1, const T2 &a2, typename T1::value_type tol=get_comparison_tolerance< typename T1::value_type, typename T2::value_type >())
 Element-wise approximate equality (within a tolerance).
template<ValidAABBType T1, ValidAABBType T2>
constexpr bool mundy::is_approx_close (const T1 &a1, const T2 &a2, typename T1::value_type tol=get_relaxed_comparison_tolerance< typename T1::value_type, typename T2::value_type >())
 Element-wise approximate equality (within a relaxed tolerance).
template<ValidAABBType AABBType>
std::ostream & mundy::operator<< (std::ostream &os, const AABBType &aabb)
template<ValidAABBType AABBType1, ValidAABBType AABBType2>
constexpr bool mundy::intersects (const AABBType1 &aabb1, const AABBType2 &aabb2)
 Check if two AABBs intersect.
Point visitation
template<ValidAABBType T, typename Functor>
void mundy::for_each_point (const T &aabb, Functor &&f)
 Visit each geometric point of an AABB (min_corner, max_corner).
template<ValidAABBType T, typename Functor>
void mundy::for_each_point_mutable (T &aabb, Functor &&f)
 Visit and mutate each geometric point of an AABB.

Variables

template<typename T>
constexpr bool mundy::is_aabb_v = is_aabb<T>::value