X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Fhyperbox.h;fp=source%2Fgeometry%2Fhyperbox.h;h=42e4d61a75a49ce0824aaf231388013246c1413f;hb=1e34b120f1229b1390cee67c917829715615ccd0;hp=0e4efd81995508de416d37cffd6ad12e3bbf2184;hpb=cc51208545c3941fcfdb078ad0c70c7fd607614e;p=libs%2Fmath.git diff --git a/source/geometry/hyperbox.h b/source/geometry/hyperbox.h index 0e4efd8..42e4d61 100644 --- a/source/geometry/hyperbox.h +++ b/source/geometry/hyperbox.h @@ -72,7 +72,7 @@ inline bool HyperBox::contains(const LinAl::Vector &point) const using std::abs; for(unsigned i=0; idimensions[i]/2) + if(abs(point[i])>dimensions[i]/T(2)) return false; return true; }