]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/hypersphere.h
Add an entry flag to SharedPoint
[libs/math.git] / source / geometry / hypersphere.h
index 4df03fed0eb433abb38d6df8e9375fc42f78befe..6bb4352f4016840ca331ebfd2034f35a7090e7d2 100644 (file)
@@ -85,6 +85,7 @@ inline unsigned HyperSphere<T, D>::get_intersections(const Ray<T, D> &ray, Surfa
                                points[n].position = ray.get_start()+ray.get_direction()*x;
                                points[n].normal = normalize(points[n].position);
                                points[n].distance = x;
+                               points[n].entry = (i<0);
                        }
 
                        ++n;