X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=blobdiff_plain;f=source%2Fgeometry%2Fhypersphere.h;h=48fdb8aa2b98bfeb91cee5b62c21d375ff35a247;hp=ed2b49ff161141e4364a5bd81773ed0c9cc16632;hb=c135ff2480f4e2aaf05b0206631bb0e1b5d73fad;hpb=204db1dfb803a97481f2a8b3bbaf6e20be6e0980 diff --git a/source/geometry/hypersphere.h b/source/geometry/hypersphere.h index ed2b49f..48fdb8a 100644 --- a/source/geometry/hypersphere.h +++ b/source/geometry/hypersphere.h @@ -96,6 +96,7 @@ inline unsigned HyperSphere::get_intersections(const Ray &ray, Surfa { points[n].position = ray.get_start()+ray.get_direction()*x; points[n].normal = normalize(points[n].position); + points[n].distance = x; } ++n;