graphics.raytracers.tracer.primatives
Class Sphere

java.lang.Object
  extended by graphics.raytracers.tracer.primatives.Primitive
      extended by graphics.raytracers.tracer.primatives.Sphere

public class Sphere
extends Primitive


Field Summary
 
Fields inherited from class graphics.raytracers.tracer.primatives.Primitive
surf
 
Constructor Summary
Sphere(Vector3d center, double radius)
           
 
Method Summary
 Isect intersect(Ray3d ry)
           
 Vector3d normal(Vector3d p)
           
 java.lang.String toString()
           
 
Methods inherited from class graphics.raytracers.tracer.primatives.Primitive
setColor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sphere

public Sphere(Vector3d center,
              double radius)
Method Detail

intersect

public Isect intersect(Ray3d ry)
Specified by:
intersect in class Primitive

normal

public Vector3d normal(Vector3d p)
Specified by:
normal in class Primitive

toString

public java.lang.String toString()
Specified by:
toString in class Primitive