X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=blobdiff_plain;f=source%2Fgeometry%2Fhypersphere.h;h=4df03fed0eb433abb38d6df8e9375fc42f78befe;hp=e2e3102014a1f73a9cfb9411d9b90638c937f851;hb=fb9e6b5ff48e10ea2217cf539e0461956abf02cf;hpb=63b6f5c937a2f0dcf93ef9fd1a586985c32631ce diff --git a/source/geometry/hypersphere.h b/source/geometry/hypersphere.h index e2e3102..4df03fe 100644 --- a/source/geometry/hypersphere.h +++ b/source/geometry/hypersphere.h @@ -70,7 +70,7 @@ inline unsigned HyperSphere::get_intersections(const Ray &ray, Surfa T mid = -inner_product(ray.get_direction(), ray.get_start()); LinAl::Vector nearest = ray.get_start()+ray.get_direction()*mid; T offset_sq = radius*radius-inner_product(nearest, nearest); - if(offset_sq<0) + if(offset_sq