MCPcopy Index your code
hub / github.com/apache/groovy / intersect

Method intersect

benchmark/bench/raytracer.java:58–67  ·  view source on GitHub ↗
(Hit i, Ray ray)

Source from the content-addressed store, hash-verified

56 objs = new LinkedList();
57 }
58 public Hit intersect(Hit i, Ray ray) {
59 double l = bound.ray_sphere(ray);
60 if (l >= i.lambda) return i;
61 ListIterator it = objs.listIterator(0);
62 while (it.hasNext()) {
63 Scene scene = (Scene)it.next();
64 i = scene.intersect(i, ray);
65 }
66 return i;
67 }
68 }
69 double ray_trace(Vec light, Ray ray, Scene scene) {
70 Hit i = scene.intersect(new Hit(infinity, new Vec(0, 0, 0)), ray);

Callers

nothing calls this directly

Calls 5

intersectMethod · 0.95
ray_sphereMethod · 0.80
listIteratorMethod · 0.45
hasNextMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected