]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/hypersphere.h
Use the coverage function to calculate tighter bounding boxes
[libs/math.git] / source / geometry / hypersphere.h
index 8f21db1d78f40689cda50c40d7ccd18cb3aa93b8..13e4278430b8b5e2a811974a1959d54dac8bd305 100644 (file)
@@ -27,7 +27,7 @@ public:
 
        T get_radius() const { return radius; }
 
-       virtual BoundingBox<T, D> get_axis_aligned_bounding_box() const;
+       virtual BoundingBox<T, D> get_axis_aligned_bounding_box(unsigned = 0) const;
        virtual bool contains(const LinAl::Vector<T, D> &) const;
        virtual unsigned get_max_ray_intersections() const { return 2; }
        virtual unsigned get_intersections(const Ray<T, D> &, SurfacePoint<T, D> *, unsigned) const;
@@ -49,7 +49,7 @@ inline HyperSphere<T, D> *HyperSphere<T, D>::clone() const
 }
 
 template<typename T, unsigned D>
-inline BoundingBox<T, D> HyperSphere<T, D>::get_axis_aligned_bounding_box() const
+inline BoundingBox<T, D> HyperSphere<T, D>::get_axis_aligned_bounding_box(unsigned) const
 {
        LinAl::Vector<T, D> extent;
        for(unsigned i=0; i<D; ++i)