Go to the source code of this file.
Functions | |
template<class Range > | |
Range | rangeIntersection (const Range &a, const Range &b) |
template<class Range , class Less > | |
Range | rangeIntersection (const Range &a, const Range &b, const Less &less) |
Utility for computing efficiently the intersection of two one-dimantional intervals.
Pre-condition and expected template argument Range interface: as for function rangesIntersect. If the intervals don't intersect an empty interval is returned.
Definition at line 16 of file rangeIntersection.h.
References a, b, SiStripPI::max, and SiStripPI::min.
Referenced by PixelRecoRange< float >::intersection().
|
inline |
Definition at line 21 of file rangeIntersection.h.
References a, b, SiStripPI::max, and SiStripPI::min.