X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Fnegation.h;h=6746aed113f487618e0e7f254f088fd8bdc2289e;hb=313e10c1dcf5504789cc145166aece93d8141212;hp=0fc01964b869efd4d841f2bee439da3feffb24d8;hpb=68389c29cf88d6522dcfa00b5e2a5166e3947210;p=libs%2Fmath.git diff --git a/source/geometry/negation.h b/source/geometry/negation.h index 0fc0196..6746aed 100644 --- a/source/geometry/negation.h +++ b/source/geometry/negation.h @@ -25,7 +25,6 @@ public: virtual HyperBox get_axis_aligned_bounding_box() const; virtual bool contains(const LinAl::Vector &) const; - virtual bool check_intersection(const Ray &) const; virtual unsigned get_max_ray_intersections() const { return shape->get_max_ray_intersections(); } virtual unsigned get_intersections(const Ray &, SurfacePoint *, unsigned) const; }; @@ -54,12 +53,6 @@ inline bool Negation::contains(const LinAl::Vector &point) const return !shape->contains(point); } -template -inline bool Negation::check_intersection(const Ray &ray) const -{ - return get_intersections(ray, 0, 1); -} - template inline unsigned Negation::get_intersections(const Ray &ray, SurfacePoint *points, unsigned size) const {