X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Fhalfspace.h;h=f671629e56194b0a93a00220c5ef17ef0c6ad0f7;hb=fb9e6b5ff48e10ea2217cf539e0461956abf02cf;hp=5fdea34c885eaf2dbf17296b07d4677984589fef;hpb=7353dc087872cdb93bd57cbaf2b6f0dcc21f9a03;p=libs%2Fmath.git diff --git a/source/geometry/halfspace.h b/source/geometry/halfspace.h index 5fdea34..f671629 100644 --- a/source/geometry/halfspace.h +++ b/source/geometry/halfspace.h @@ -33,7 +33,7 @@ public: template inline HalfSpace::HalfSpace() { - normal[0] = 1; + normal[0] = T(1); } template @@ -57,7 +57,7 @@ inline BoundingBox HalfSpace::get_axis_aligned_bounding_box() const template inline bool HalfSpace::contains(const LinAl::Vector &point) const { - return inner_product(point, normal)<=0; + return inner_product(point, normal)<=T(0); } template