X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FShape.hh;h=626ac3a391299d7d807feba416ba2dbb94d2afe2;hp=c67a7798772e78b5e4992ba39b59e3c75b3428c9;hb=7f3984f3f9524f5b6813e01ceb2fe576dadff94e;hpb=99ac607f489023a7aa17bfb046113b0e4a65dab6 diff --git a/src/Moof/Shape.hh b/src/Moof/Shape.hh index c67a779..626ac3a 100644 --- a/src/Moof/Shape.hh +++ b/src/Moof/Shape.hh @@ -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& ray, - typename Ray::Intersection& intersection) + virtual bool intersectRay(const Ray& ray, + typename Ray::Intersection& hit) { return SCALAR(-1.0); }