Class comparing 2D vectors. More...
#include <RealComparisons.h>
Public Types | |
using | Comp_t = RealComparisons< RealType > |
Public Member Functions | |
constexpr | Vector2DComparison (Comp_t const &comparer) |
Copy the specified comparison. More... | |
Vector2DComparison (Comp_t &&comparer) | |
Steal the specified comparison. More... | |
constexpr | Vector2DComparison (RealType threshold) |
Use the specified threshold. More... | |
constexpr Comp_t | comp () const |
Returns the basic value comparer. More... | |
template<typename Vect > | |
constexpr bool | zero (Vect const &v) const |
Returns whether the specified vector is null (within tolerance). More... | |
template<typename Vect > | |
constexpr bool | nonZero (Vect const &v) const |
Returns whether the specified vector is not null (within tolerance). More... | |
template<typename VectA , typename VectB > | |
constexpr bool | equal (VectA const &a, VectB const &b) const |
Returns whether the specified vectors match (within tolerance). More... | |
template<typename VectA , typename VectB > | |
constexpr bool | nonEqual (VectA const &a, VectB const &b) const |
Returns whether the specified vectors do not match (within tolerance). More... | |
Private Attributes | |
Comp_t const | comparer |
Comparison object. More... | |
Class comparing 2D vectors.
Definition at line 142 of file RealComparisons.h.
using lar::util::Vector2DComparison< RealType >::Comp_t = RealComparisons<RealType> |
Definition at line 144 of file RealComparisons.h.
|
inline |
Copy the specified comparison.
Definition at line 147 of file RealComparisons.h.
|
inline |
Steal the specified comparison.
Definition at line 151 of file RealComparisons.h.
|
inline |
Use the specified threshold.
Definition at line 154 of file RealComparisons.h.
|
inline |
Returns the basic value comparer.
Definition at line 157 of file RealComparisons.h.
|
inline |
Returns whether the specified vectors match (within tolerance).
Definition at line 170 of file RealComparisons.h.
|
inline |
Returns whether the specified vectors do not match (within tolerance).
Definition at line 175 of file RealComparisons.h.
|
inline |
Returns whether the specified vector is not null (within tolerance).
Definition at line 166 of file RealComparisons.h.
|
inline |
Returns whether the specified vector is null (within tolerance).
Definition at line 161 of file RealComparisons.h.
|
private |
Comparison object.
Definition at line 179 of file RealComparisons.h.