Camera - package raytracer.cameras; import...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
package raytracer.cameras; import raytracer.utility.Point2D; import raytracer.utility.Point3D; import raytracer.utility.RGBColor; import raytracer.utility.Ray; import raytracer.utility.Vector3D; import raytracer.world.ViewPlane; import raytracer.world.World; public abstract class Camera { protected Point3D eye; // eye point protected Point3D lookat; // lookat point protected float ra; // roll angle protected Vector3D u, v, w; // orthonormal basis vectors protected Vector3D up; // up vector protected float exposure_time; // ----------------------------------------------------------------- default constructor public Camera() { eye = new Point3D(0, 0, 500); lookat = new Point3D(0); ra=0; up = new Vector3D(0, 1, 0); u = new Vector3D(1, 0, 0); v = new Vector3D(0, 1, 0); w = new Vector3D(0, 0, 1); exposure_time = 1.0f; } // ----------------------------------------------------------------- copy constructor public Camera(Camera c) { eye = new Point3D(c.eye); lookat = new Point3D(c.lookat); ra = c.ra; up = new Vector3D(c.up);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/19/2010 for the course CS 390 taught by Professor Hu during the Spring '10 term at Westminster UT.

Page1 / 4

Camera - package raytracer.cameras; import...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online