X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=blobdiff_plain;f=source%2Fgeometry%2Fhyperbox.h;h=865b968902f078b25297138786f3602fbafa9260;hp=845ca346eaffedf3aad1a4899b54c281c9593ff9;hb=643aa7b2317f88463f66da11e595ebe0f6c9621d;hpb=fe9d42c7cb18bc1db6d278bdc2f8372822d025bf diff --git a/source/geometry/hyperbox.h b/source/geometry/hyperbox.h index 845ca34..865b968 100644 --- a/source/geometry/hyperbox.h +++ b/source/geometry/hyperbox.h @@ -64,6 +64,8 @@ inline T HyperBox::get_dimension(unsigned i) const template inline bool HyperBox::contains(const LinAl::Vector &point) const { + using std::abs; + for(unsigned i=0; idimensions[i]/2) return false;