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

Classes

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

Namespaces

namespace  mundy

Concepts

concept  mundy::ValidSpherocylinderType
 Concept to check if a type is a valid Spherocylinder type.

Functions

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

Variables

template<typename T>
constexpr bool mundy::is_spherocylinder_v = is_spherocylinder<T>::value