X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=blobdiff_plain;f=source%2Fgeometry%2Fhyperbox.h;h=e3236e8cfaf03d69877fdfe94f7a75dc8e9f811e;hp=c3bac57d97e3464d20535a66928106079777801a;hb=44bd1d1ab256d397be4e2169c4ca5efdd0569d31;hpb=a29d2c17ca70a3ed5df1e863c92ccd851d5dba6b diff --git a/source/geometry/hyperbox.h b/source/geometry/hyperbox.h index c3bac57..e3236e8 100644 --- a/source/geometry/hyperbox.h +++ b/source/geometry/hyperbox.h @@ -29,7 +29,7 @@ public: const LinAl::Vector &get_dimensions() const { return dimensions; } T get_dimension(unsigned) const; - virtual BoundingBox get_axis_aligned_bounding_box() const; + virtual BoundingBox get_axis_aligned_bounding_box(unsigned = 0) const; virtual bool contains(const LinAl::Vector &) const; virtual unsigned get_max_ray_intersections() const { return 2; } virtual unsigned get_intersections(const Ray &, SurfacePoint *, unsigned) const; @@ -65,7 +65,7 @@ inline T HyperBox::get_dimension(unsigned i) const } template -inline BoundingBox HyperBox::get_axis_aligned_bounding_box() const +inline BoundingBox HyperBox::get_axis_aligned_bounding_box(unsigned) const { LinAl::Vector half_dim = dimensions/T(2); return BoundingBox(-half_dim, half_dim);