{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Tracer - default constructor public Tracer world_ptr = null...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
package raytracer.tracers; import raytracer.utility.Ray; import raytracer.utility.RGBColor; import raytracer.world.World; //This is the declaration of the base class Tracer //The tracer classes have no copy constructor, assignment operator. or clone function because //of the world pointer, which should not be assigned or copy constructed //See comments in World.java public abstract class Tracer { protected World world_ptr; // --------------------------------------------------------------------
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: default constructor public Tracer() { world_ptr = null; } // -------------------------------------------------------------------- constructor public Tracer(World worldPtr){ world_ptr = worldPtr; } // -------------------------------------------------------------------- trace_ray public abstract RGBColor trace_ray(Ray ray); // -------------------------------------------------------------------- trace_ray public abstract RGBColor trace_ray(Ray ray, int depth); }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online