X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Fhypersphere.h;h=48fdb8aa2b98bfeb91cee5b62c21d375ff35a247;hb=c135ff2480f4e2aaf05b0206631bb0e1b5d73fad;hp=ed2b49ff161141e4364a5bd81773ed0c9cc16632;hpb=adb812a194961d542dcb0abd61258cbc8723ecd9;p=libs%2Fmath.git 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;