From: Mikko Rasa Date: Sat, 2 Jul 2016 15:36:04 +0000 (+0300) Subject: Minor fixes X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=commitdiff_plain;h=65b26478a62b8d715ec415164fff25fafcb35fc1 Minor fixes --- diff --git a/source/geometry/extrudedshape.h b/source/geometry/extrudedshape.h index a62aa9a..78dfa49 100644 --- a/source/geometry/extrudedshape.h +++ b/source/geometry/extrudedshape.h @@ -116,7 +116,7 @@ inline unsigned ExtrudedShape::get_intersections(const Ray &ray, Sur { T offset = T(); T limit = T(); - if(ray.get_direction()[D-1]!=T(0)) + if(ray_direction[D-1]!=T(0)) { offset = (half_length-ray_start[D-1])/ray_direction[D-1]; limit = (-half_length-ray_start[D-1])/ray_direction[D-1]; @@ -157,7 +157,7 @@ inline unsigned ExtrudedShape::get_intersections(const Ray &ray, Sur /* If the ray is not parallel to the base space, it may pass through the caps. */ - if(n