Class Sphere

java.lang.Object
  extended by Surface
      extended by Sphere

public class Sphere
extends Surface

Represents a solid sphere.


Field Summary
 
Fields inherited from class Surface
EMPTY
 
Constructor Summary
Sphere(Point center, double radius)
           
Sphere(Point center, double radius, Material material)
           
 
Method Summary
 Intersection getIntersection(Ray query)
          Returns information about the closest point on this surface that the query ray hits, where the ``distance'' along the ray will be at least one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sphere

public Sphere(Point center,
              double radius,
              Material material)

Sphere

public Sphere(Point center,
              double radius)
Method Detail

getIntersection

public Intersection getIntersection(Ray query)
Description copied from class: Surface
Returns information about the closest point on this surface that the query ray hits, where the ``distance'' along the ray will be at least one.

Specified by:
getIntersection in class Surface