|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectIntersection
public class Intersection
Holds information about where a ray intersects with a surface in the world.
| Constructor Summary | |
|---|---|
Intersection(double dist,
Surface surf,
Ray normal)
Constructs an Intersection object holding the given information. |
|
| Method Summary | |
|---|---|
double |
getDistance()
Returns the ``distance'' along the viewing ray that the surface appears. |
Ray |
getNormalRay()
Returns the ray normal to the surface at this intersection point. |
Surface |
getSurface()
Returns the surface at this intersection point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Intersection(double dist,
Surface surf,
Ray normal)
dist - the distance along the viewing ray that the
surface appears.surf - the surface that it intersects.normal - the ray normal to the surface at this
point of intersection.| Method Detail |
|---|
public double getDistance()
getDistanceFrom method defines what this
distance is.
public Surface getSurface()
public Ray getNormalRay()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||