Classes | Namespaces | Functions
RealComparisons.h File Reference

Class for approximate comparisons. More...

#include <cmath>
#include <utility>

Go to the source code of this file.

Classes

struct  lar::util::RealComparisons< RealType >
 Provides simple real number checks. More...
 
struct  lar::util::Vector2DComparison< RealType >
 Class comparing 2D vectors. More...
 
struct  lar::util::Vector3DComparison< RealType >
 Class comparing 2D vectors. More...
 

Namespaces

 lar
 LArSoft-specific namespace.
 
 lar::util
 LArSoft utility namespace.
 

Functions

template<typename RealType >
auto lar::util::makeVector2DComparison (RealType threshold)
 Creates a Vector2DComparison from a RealComparisons object. More...
 
template<typename RealType >
auto lar::util::makeVector2DComparison (lar::util::RealComparisons< RealType > const &comp)
 Creates a Vector2DComparison from a RealComparisons object. More...
 
template<typename RealType >
auto lar::util::makeVector3DComparison (RealType threshold)
 Creates a Vector3DComparison from a RealComparisons object. More...
 
template<typename RealType >
auto lar::util::makeVector3DComparison (lar::util::RealComparisons< RealType > const &comp)
 Creates a Vector3DComparison from a RealComparisons object. More...
 

Detailed Description

Class for approximate comparisons.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
Date
November 2, 2016

This is a header-only library.

Definition in file RealComparisons.h.