]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Shape.hh
stream-based logging classes
[chaz/yoink] / src / Moof / Shape.hh
index c67a7798772e78b5e4992ba39b59e3c75b3428c9..626ac3a391299d7d807feba416ba2dbb94d2afe2 100644 (file)
@@ -61,14 +61,15 @@ class Shape
 public:
 
        virtual ~Shape() {}
+
        /**
         * Checks if this shape is intersected by a given ray.  If so, returns the
         * distance from the start of the ray to the shape and information about the
         * intersection via the 2nd parameter.  A negative value is returned if
         * there is no intersection.
         */
-       virtual Scalar intersectRay(const Ray<D>& ray,
-                       typename Ray<D>::Intersection& intersection)
+       virtual bool intersectRay(const Ray<D>& ray,
+                       typename Ray<D>::Intersection& hit)
        {
                return SCALAR(-1.0);
        }
This page took 0.019773 seconds and 4 git commands to generate.