X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Fhyperbox.h;h=546ad0ec3984c5b338978c23b37f0c8ea5f97533;hb=7919982691f0b8c69d8bef1bf6471b1e7a312163;hp=da500910e4f100d57f865b644bd719d71a3ee34c;hpb=09cc3a8648dd20e9a07d669b353c4a120b67c1c4;p=libs%2Fmath.git diff --git a/source/geometry/hyperbox.h b/source/geometry/hyperbox.h index da50091..546ad0e 100644 --- a/source/geometry/hyperbox.h +++ b/source/geometry/hyperbox.h @@ -5,10 +5,7 @@ #include #include #include -#include "boundingbox.h" -#include "ray.h" #include "shape.h" -#include "surfacepoint.h" namespace Msp { namespace Geometry { @@ -119,6 +116,7 @@ inline unsigned HyperBox::get_intersections(const Ray &ray, SurfaceP points[n].normal = LinAl::Vector(); points[n].normal[i] = j; points[n].distance = x; + points[n].entry = (T(j)*ray.get_direction()[i]