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 > |
Type of base value comparer. More... | |
using | Comp2D_t = Vector2DComparison< typename Comp_t::Value_t > |
Type of 2D vector comparer. More... | |
Public Member Functions | |
constexpr | Vector3DComparison (Comp_t const &comparer) |
Copy the specified comparison. More... | |
Vector3DComparison (Comp_t &&comparer) | |
Steal the specified comparison. More... | |
constexpr | Vector3DComparison (RealType threshold) |
Use the specified threshold. More... | |
constexpr Comp_t | comp () const |
Returns the base value comparer. More... | |
constexpr Comp2D_t | comp2D () const |
Returns the 2D vector 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 | |
Comp2D_t | comparer |
Class comparing 2D vectors.
Definition at line 193 of file RealComparisons.h.
using lar::util::Vector3DComparison< RealType >::Comp2D_t = Vector2DComparison<typename Comp_t::Value_t> |
Type of 2D vector comparer.
Definition at line 199 of file RealComparisons.h.
using lar::util::Vector3DComparison< RealType >::Comp_t = RealComparisons<RealType> |
Type of base value comparer.
Definition at line 196 of file RealComparisons.h.
|
inline |
|
inline |
|
inline |
|
inline |
Returns the base value comparer.
Definition at line 211 of file RealComparisons.h.
|
inline |
|
inline |
Returns whether the specified vectors match (within tolerance).
Definition at line 232 of file RealComparisons.h.
|
inline |
Returns whether the specified vectors do not match (within tolerance).
Definition at line 239 of file RealComparisons.h.
References lar::util::RealComparisons< RealType >::equal().
|
inline |
Returns whether the specified vector is not null (within tolerance).
Definition at line 225 of file RealComparisons.h.
References lar::util::RealComparisons< RealType >::zero().
|
inline |
Returns whether the specified vector is null (within tolerance).
Definition at line 218 of file RealComparisons.h.
|
private |
Definition at line 245 of file RealComparisons.h.