X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Fhalfspace.h;h=5fdea34c885eaf2dbf17296b07d4677984589fef;hb=7353dc087872cdb93bd57cbaf2b6f0dcc21f9a03;hp=9ed80ff71b85052e6525bb46fb800f775c04fe3f;hpb=484eec5f57755ae6430471b1e13b67f86f15c8fa;p=libs%2Fmath.git diff --git a/source/geometry/halfspace.h b/source/geometry/halfspace.h index 9ed80ff..5fdea34 100644 --- a/source/geometry/halfspace.h +++ b/source/geometry/halfspace.h @@ -24,7 +24,7 @@ public: const LinAl::Vector &get_normal() const { return normal; } - virtual HyperBox get_axis_aligned_bounding_box() const; + virtual BoundingBox get_axis_aligned_bounding_box() const; virtual bool contains(const LinAl::Vector &) const; virtual unsigned get_max_ray_intersections() const { return 1; } virtual unsigned get_intersections(const Ray &, SurfacePoint *, unsigned) const; @@ -48,10 +48,10 @@ inline HalfSpace *HalfSpace::clone() const } template -inline HyperBox HalfSpace::get_axis_aligned_bounding_box() const +inline BoundingBox HalfSpace::get_axis_aligned_bounding_box() const { - // XXX Implement this properly - return HyperBox(); + // XXX If the normal is aligned to an axis, should the bounding box reflect that? + return ~BoundingBox(); } template