/usr/include/psurface/PointIntersectionFunctor.h is in libpsurface-dev 2.0.0-2+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #ifndef POINT_INTERSECTION_FUNCTOR_H
#define POINT_INTERSECTION_FUNCTOR_H
#include "StaticVector.h"
/** \brief Functor class needed to insert StaticVector<.,3> objects into a MultiDimOctree
*/
template <class ctype>
struct PointIntersectionFunctor
{
bool operator()(const std::tr1::array<ctype,3>& lower,
const std::tr1::array<ctype,3>& upper, const StaticVector<ctype,3>& item) const {
return (lower[0] <= item[0]) && (item[0] <= upper[0])
&& (lower[1] <= item[1]) && (item[1] <= upper[1])
&& (lower[2] <= item[2]) && (item[2] <= upper[2]);
}
};
#endif
|