LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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 126 of file RealComparisons.h.
using lar::util::Vector2DComparison< RealType >::Comp_t = RealComparisons<RealType> |
Definition at line 128 of file RealComparisons.h.
|
inline |
Copy the specified comparison.
Definition at line 131 of file RealComparisons.h.
|
inline |
Steal the specified comparison.
Definition at line 134 of file RealComparisons.h.
|
inline |
Use the specified threshold.
Definition at line 137 of file RealComparisons.h.
|
inline |
Returns the basic value comparer.
Definition at line 140 of file RealComparisons.h.
|
inline |
Returns whether the specified vectors match (within tolerance).
Definition at line 158 of file RealComparisons.h.
|
inline |
Returns whether the specified vectors do not match (within tolerance).
Definition at line 165 of file RealComparisons.h.
|
inline |
Returns whether the specified vector is not null (within tolerance).
Definition at line 151 of file RealComparisons.h.
|
inline |
Returns whether the specified vector is null (within tolerance).
Definition at line 144 of file RealComparisons.h.
|
private |
Comparison object.
Definition at line 171 of file RealComparisons.h.