X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=blobdiff_plain;f=source%2Fgeometry%2Fhypersphere.h;h=cbec2d99af744e7182f4b5f0081379b059a14d95;hp=35cddd1ac36461f4ee2a0e00122abda491ce3b0a;hb=827b227ae53884109b6885ccd1424dda8c0b3725;hpb=68389c29cf88d6522dcfa00b5e2a5166e3947210 diff --git a/source/geometry/hypersphere.h b/source/geometry/hypersphere.h index 35cddd1..cbec2d9 100644 --- a/source/geometry/hypersphere.h +++ b/source/geometry/hypersphere.h @@ -89,10 +89,10 @@ inline unsigned HyperSphere::get_intersections(const Ray &ray, Surfa T offset = sqrt(offset_sq); unsigned n = 0; - for(int i=-1; i<=1; i+=2) + for(int i=-1; (n::get_intersections(const Ray &ray, Surfa } ++n; - if(n==size) - return n; } }