branch | pyrit |
changeset 82 | 930a2d3ecaed |
parent 78 | 9569e9f35374 |
child 84 | 6f7fe14782c2 |
--- a/src/container.cc Thu Apr 24 10:49:11 2008 +0200 +++ b/src/container.cc Thu Apr 24 13:55:11 2008 +0200 @@ -60,6 +60,14 @@ return nearest_shape; } +void Container::packet_intersection(const Shape **origin_shapes, const Ray *rays, + Float *nearest_distances, Shape **nearest_shapes) +{ + for (int i = 0; i < 4; i++) + nearest_shapes[i] = nearest_intersection(origin_shapes[i], rays[i], + nearest_distances[i]); +} + ostream & Container::dump(ostream &st) { st << "(container," << shapes.size();