graphics.raytracers.tracer.primatives
Class Primitive

java.lang.Object
  extended by graphics.raytracers.tracer.primatives.Primitive
Direct Known Subclasses:
Sphere

public abstract class Primitive
extends java.lang.Object


Field Summary
 Surface surf
           
 
Constructor Summary
Primitive()
           
 
Method Summary
abstract  Isect intersect(Ray3d ry)
           
abstract  Vector3d normal(Vector3d pnt)
           
 void setColor(double r, double g, double b)
           
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

surf

public Surface surf
Constructor Detail

Primitive

public Primitive()
Method Detail

setColor

public void setColor(double r,
                     double g,
                     double b)

normal

public abstract Vector3d normal(Vector3d pnt)

intersect

public abstract Isect intersect(Ray3d ry)

toString

public abstract java.lang.String toString()
Overrides:
toString in class java.lang.Object