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);
}