Raytracing
Class ListAccelerator

java.lang.Object
  extended by Raytracing.Accelerator
      extended by Raytracing.ListAccelerator

public class ListAccelerator
extends Accelerator


Field Summary
 
Fields inherited from class Raytracing.Accelerator
objects, showTree, valid
 
Constructor Summary
ListAccelerator()
          Creates a new instance of ListAccelerator
 
Method Summary
 void add(Intersectable newObject)
           
 void draw(processing.core.PApplet g)
           
 boolean findNearest(Ray state)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListAccelerator

public ListAccelerator()
Creates a new instance of ListAccelerator

Method Detail

validate

public void validate()

add

public void add(Intersectable newObject)
Specified by:
add in class Accelerator

draw

public void draw(processing.core.PApplet g)
Specified by:
draw in class Accelerator

findNearest

public boolean findNearest(Ray state)
Specified by:
findNearest in class Accelerator