|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectIntersection
public class Intersection
A class to hold intersection information.
Intersection
contains the time of intersection and the Shape
intersected.
Field Summary | |
---|---|
static double |
NoIntersection
Double value that specifies there was no intersection. |
Shape |
shape
The shape intersected, or null if time == NoIntersection |
double |
time
The time of intersection, or NoIntersection
if there was no intersection |
Constructor Summary | |
---|---|
Intersection()
Constructs the default intersection where time == NoIntersection
and shape == null . |
|
Intersection(double time,
Shape shape)
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double time
NoIntersection
if there was no intersection
public Shape shape
time == NoIntersection
public static double NoIntersection
Constructor Detail |
---|
public Intersection()
time == NoIntersection
and shape == null
.
public Intersection(double time, Shape shape)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |