]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/negation.h
Make the check_intersection function non-virtual
[libs/math.git] / source / geometry / negation.h
index 0fc01964b869efd4d841f2bee439da3feffb24d8..6746aed113f487618e0e7f254f088fd8bdc2289e 100644 (file)
@@ -25,7 +25,6 @@ public:
 
        virtual HyperBox<T, D> get_axis_aligned_bounding_box() const;
        virtual bool contains(const LinAl::Vector<T, D> &) const;
-       virtual bool check_intersection(const Ray<T, D> &) const;
        virtual unsigned get_max_ray_intersections() const { return shape->get_max_ray_intersections(); }
        virtual unsigned get_intersections(const Ray<T, D> &, SurfacePoint<T, D> *, unsigned) const;
 };
@@ -54,12 +53,6 @@ inline bool Negation<T, D>::contains(const LinAl::Vector<T, D> &point) const
        return !shape->contains(point);
 }
 
-template<typename T, unsigned D>
-inline bool Negation<T, D>::check_intersection(const Ray<T, D> &ray) const
-{
-       return get_intersections(ray, 0, 1);
-}
-
 template<typename T, unsigned D>
 inline unsigned Negation<T, D>::get_intersections(const Ray<T, D> &ray, SurfacePoint<T, D> *points, unsigned size) const
 {