| 86 | } |
| 87 | |
| 88 | size_t AddRay(const Ray &ray) { |
| 89 | assert (currentFreeRayIndex < size); |
| 90 | rays[currentFreeRayIndex] = ray; |
| 91 | |
| 92 | return currentFreeRayIndex++; |
| 93 | } |
| 94 | |
| 95 | size_t AddRays(const Ray *ray, const size_t raysCount) { |
| 96 | assert ((raysCount == 0) || (currentFreeRayIndex + raysCount - 1 < size)); |