]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/hyperbox.h
Math function usage fixes
[libs/math.git] / source / geometry / hyperbox.h
index 845ca346eaffedf3aad1a4899b54c281c9593ff9..865b968902f078b25297138786f3602fbafa9260 100644 (file)
@@ -64,6 +64,8 @@ inline T HyperBox<T, D>::get_dimension(unsigned i) const
 template<typename T, unsigned D>
 inline bool HyperBox<T, D>::contains(const LinAl::Vector<T, D> &point) const
 {
+       using std::abs;
+
        for(unsigned i=0; i<D; ++i)
                if(abs(point[i])>dimensions[i]/2)
                        return false;