|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectIntersection
public abstract class Intersection
Represents information about where a ray reaches a surface.
| Field Summary | |
|---|---|
static Intersection |
NONE
Represents the null intersection - for when a ray doesn't meet any surface. |
| Constructor Summary | |
|---|---|
Intersection()
|
|
| Method Summary | |
|---|---|
abstract double |
getDistance()
Returns the distance along the ray to the intersection; ie, how many times the direction vector should be added to the point to reach the surface. |
abstract Point |
getHitPoint()
Returns the point on the surface where the ray hit. |
abstract Material |
getMaterial()
Returns the material on the surface at the point the ray hit. |
abstract Vector |
getNormal()
Returns a vector normal to the surface at the point where the ray hit, in the direction of the surface's exterior. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Intersection NONE
| Constructor Detail |
|---|
public Intersection()
| Method Detail |
|---|
public abstract double getDistance()
public abstract Point getHitPoint()
public abstract Vector getNormal()
public abstract Material getMaterial()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||