(Hit i, Ray ray)
| 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); |
nothing calls this directly
no test coverage detected