|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttracer.Traceable
public abstract class Traceable
Base class for all visible objects.
Field Summary | |
---|---|
(package private) Material |
material
|
Constructor Summary | |
---|---|
Traceable()
|
Method Summary | |
---|---|
abstract boolean |
hit(Ray r)
Returns a boolean indicating whether the line segment (r.origin + t*r.direction) with 0 <= t <= 1 intersects the object. |
abstract IntersectionInfo |
intersect(Ray r)
Returns an IntersectionInfo object indicating whether the ray r intersects this object or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Material material
Constructor Detail |
---|
public Traceable()
Method Detail |
---|
public abstract IntersectionInfo intersect(Ray r)
IntersectionInfo
public abstract boolean hit(Ray r)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |