Exemple #1
0
 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))));
 }
Exemple #2
0
 public Scene(List<Thing> things, List<Light> lights, Camera camera)
 {
     this.things = things;
     this.lights = lights;
     this.camera = camera;
 }