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

Classes

class  mundy::LineSegment< Scalar, StartPointType, EndPointType >

Namespaces

namespace  mundy

Concepts

concept  mundy::ValidLineSegmentType
 Concept to check if a type is a valid LineSegment type.

Functions

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

Variables

template<typename T>
constexpr bool mundy::is_line_segment_v = is_line_segment<T>::value