Vector getPoint(double x, double y, Camera camera) { return Vector.norm(Vector.plus(camera.forward, Vector.plus(Vector.times(recenterX(x), camera.right), Vector.times(recenterY(y), camera.up)))); }
public Scene(List<Thing> things, List<Light> lights, Camera camera) { this.things = things; this.lights = lights; this.camera = camera; }