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

Classes

class  mundy::Line< Scalar, PointType >

Namespaces

namespace  mundy

Concepts

concept  mundy::ValidLineType
 Concept to check if a type is a valid Line type.

Functions

Non-member functions for ValidLineType objects
template<ValidLineType T1, ValidLineType T2>
constexpr bool mundy::is_close (const T1 &l1, const T2 &l2, typename T1::value_type tol=get_comparison_tolerance< typename T1::value_type, typename T2::value_type >())
 Element-wise approximate equality (within a tolerance).
template<ValidLineType T1, ValidLineType T2>
constexpr bool mundy::is_approx_close (const T1 &l1, const T2 &l2, 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<ValidLineType LineType>
std::ostream & mundy::operator<< (std::ostream &os, const LineType &line)
 Output stream operator.
Point visitation
template<ValidLineType T, typename Functor>
void mundy::for_each_point (const T &l, Functor &&f)
 Visit the geometric anchor point of a Line (its center). The direction is a vector, not a position, and is not visited.
template<ValidLineType T, typename Functor>
void mundy::for_each_point_mutable (T &l, Functor &&f)
 Visit and mutate the geometric anchor point of a Line. The direction is a vector, not a position, and is not mutated.

Variables

template<typename T>
constexpr bool mundy::is_line_v = is_line<T>::value