LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
NumericUtils.h File Reference

Functions to help with numbers. More...

#include <type_traits>

Go to the source code of this file.

Namespaces

 lar::util
 LArSoft utility namespace.
 

Functions

bool lar::util::PointWithinSegments (double A_start_x, double A_start_y, double A_end_x, double A_end_y, double B_start_x, double B_start_y, double B_end_x, double B_end_y, double x, double y)
 Returns whether x and y are within both specified ranges (A and B). More...
 
bool lar::util::ValueInRange (double value, double min, double max)
 Returns whether a value is within the specified range. More...
 
template<typename A , typename B >
constexpr auto lar::util::absDiff (A const &a, B const &b)
 Returns the absolute value of the difference between two values. More...
 

Detailed Description

Functions to help with numbers.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
Date
March 30, 2018

Definition in file NumericUtils.h.