]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/hyperbox.h
Miscellaneous fixes, mostly stylistic
[libs/math.git] / source / geometry / hyperbox.h
index 0e4efd81995508de416d37cffd6ad12e3bbf2184..42e4d61a75a49ce0824aaf231388013246c1413f 100644 (file)
@@ -72,7 +72,7 @@ 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)
+               if(abs(point[i])>dimensions[i]/T(2))
                        return false;
        return true;
 }