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 200 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 206 of file RealComparisons.h.
using lar::util::Vector3DComparison< RealType >::Comp_t = RealComparisons<RealType> |
Type of base value comparer.
Definition at line 203 of file RealComparisons.h.
|
inline |
|
inline |
|
inline |
|
inline |
Returns the base value comparer.
Definition at line 219 of file RealComparisons.h.
|
inline |
|
inline |
Returns whether the specified vectors match (within tolerance).
Definition at line 235 of file RealComparisons.h.
|
inline |
Returns whether the specified vectors do not match (within tolerance).
Definition at line 240 of file RealComparisons.h.
|
inline |
Returns whether the specified vector is not null (within tolerance).
Definition at line 231 of file RealComparisons.h.
|
inline |
Returns whether the specified vector is null (within tolerance).
Definition at line 226 of file RealComparisons.h.
|
private |
Definition at line 244 of file RealComparisons.h.