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

Classes

class  mundy::Sphere< Scalar, PointType >

Namespaces

namespace  mundy

Concepts

concept  mundy::ValidSphereType
 Concept to check if a type is a valid Sphere type.

Functions

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

Variables

template<typename T>
constexpr bool mundy::is_sphere_v = is_sphere<T>::value