]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/shape.h
Implement bounding boxes with a separate class
[libs/math.git] / source / geometry / shape.h
index 7b1d190b5a762b82c7213a012e58190c7ba8d66c..bbe255f9054f919792ca748a7c25468b62bfabc8 100644 (file)
@@ -8,7 +8,7 @@ namespace Msp {
 namespace Geometry {
 
 template<typename T, unsigned D>
-class HyperBox;
+class BoundingBox;
 
 template<typename T, unsigned D>
 class Ray;
@@ -31,7 +31,7 @@ public:
 
        virtual Shape *clone() const = 0;
 
-       virtual HyperBox<T, D> get_axis_aligned_bounding_box() const = 0;
+       virtual BoundingBox<T, D> get_axis_aligned_bounding_box() const = 0;
        virtual bool contains(const LinAl::Vector<T, D> &) const = 0;
        bool check_intersection(const Ray<T, D> &) const;
        virtual unsigned get_max_ray_intersections() const = 0;