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

Classes

class  mundy::VSegment< Scalar, PointType >

Namespaces

namespace  mundy

Concepts

concept  mundy::ValidVSegmentType
 Concept to check if a type is a valid VSegment type.

Functions

Non-member functions for ValidVSegmentType objects
template<ValidVSegmentType T1, ValidVSegmentType T2>
constexpr bool mundy::is_close (const T1 &vs1, const T2 &vs2, typename T1::value_type tol=get_comparison_tolerance< typename T1::value_type, typename T2::value_type >())
 Element-wise approximate equality (within a tolerance).
template<ValidVSegmentType T1, ValidVSegmentType T2>
constexpr bool mundy::is_approx_close (const T1 &vs1, const T2 &vs2, 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<ValidVSegmentType VSegmentType>
std::ostream & mundy::operator<< (std::ostream &os, const VSegmentType &v_segment)
 OStream operator.
Point visitation
template<ValidVSegmentType T, typename Functor>
void mundy::for_each_point (const T &vs, Functor &&f)
 Visit each geometric point of a VSegment (start, middle, end).
template<ValidVSegmentType T, typename Functor>
void mundy::for_each_point_mutable (T &vs, Functor &&f)
 Visit and mutate each geometric point of a VSegment.

Variables

template<typename T>
constexpr bool mundy::is_v_segment_v = is_v_segment<T>::value