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

Classes

class  mundy::Ring< Scalar, PointType, QuaternionType >

Namespaces

namespace  mundy

Concepts

concept  mundy::ValidRingType
 Concept to check if a type is a valid Ring type.

Functions

Non-member functions for ValidRingType objects
template<ValidRingType T1, ValidRingType T2>
constexpr bool mundy::is_close (const T1 &r1, const T2 &r2, typename T1::value_type tol=get_comparison_tolerance< typename T1::value_type, typename T2::value_type >())
 Element-wise approximate equality (within a tolerance).
template<ValidRingType T1, ValidRingType T2>
constexpr bool mundy::is_approx_close (const T1 &r1, const T2 &r2, 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<ValidRingType RingType>
std::ostream & mundy::operator<< (std::ostream &os, const RingType &ring)
 OStream operator.
Point visitation
template<ValidRingType T, typename Functor>
void mundy::for_each_point (const T &r, Functor &&f)
 Visit the geometric point of a Ring (its center).
template<ValidRingType T, typename Functor>
void mundy::for_each_point_mutable (T &r, Functor &&f)
 Visit and mutate the geometric point of a Ring.

Variables

template<typename T>
constexpr bool mundy::is_ring_v = is_ring<T>::value