X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Fhalfspace.h;h=b439851bd5adaf3a7067c7f91f5bf8308bb01166;hb=7919982691f0b8c69d8bef1bf6471b1e7a312163;hp=4adc0dff45694726f399b7a07a3afff0cedcdb2c;hpb=5bcf5a18cda4d712ca177f4ad43fea690f31e6f9;p=libs%2Fmath.git diff --git a/source/geometry/halfspace.h b/source/geometry/halfspace.h index 4adc0df..b439851 100644 --- a/source/geometry/halfspace.h +++ b/source/geometry/halfspace.h @@ -7,8 +7,8 @@ namespace Msp { namespace Geometry { /** -An infinite shape consisting of the space on one side of a plane. Mostly -useful when composited with other shapes. +An unbounded shape consisting of the space on one side of a plane. Mostly +useful when intersected with other shapes. */ template class HalfSpace: public Shape @@ -76,6 +76,7 @@ inline unsigned HalfSpace::get_intersections(const Ray &ray, Surface points[0].position = ray.get_start()+ray.get_direction()*x; points[0].normal = normal; points[0].distance = x; + points[0].entry = (c