List<Ray> getPrimaryRays(int x, int y)

Returns a collection of primary rays generated for the given pixel by this camera.

Source

List<Ray> getPrimaryRays(int x, int y) {
  Ray ret = new Ray(center, stepX*x.toDouble() + stepY*y.toDouble() + topLeft);
  return [ret];
}