|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.intersection.IntersectionRecord
public class IntersectionRecord
IntersectionRecord stores needed information for a interesection query between two objects. This includes all points that were intersected, and the distances between these points. Therefore, a 1 to 1 ratio between the distance array and the point array is enforced.
| Constructor Summary | |
|---|---|
IntersectionRecord()
Instantiates a new IntersectionRecord with no distances or points assigned. |
|
IntersectionRecord(float[] distances,
Vector3f[] points)
Instantiates a new IntersectionRecord defining the distances and points. |
|
| Method Summary | |
|---|---|
float |
getClosestDistance()
Returns the smallest distance in the distance array. |
int |
getClosestPoint()
Returns the point that has the smallest associated distance value. |
int |
getFarthestPoint()
Returns the point that has the largest associated distance value. |
float |
getIntersectionDistance(int index)
Returns an intersection distance at a provided index. |
Vector3f |
getIntersectionPoint(int index)
Returns an intersection point at a provided index. |
int |
getQuantity()
Returns the number of intersections that occured. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntersectionRecord()
public IntersectionRecord(float[] distances,
Vector3f[] points)
distances - the distances of this intersection.points - the points of this intersection.| Method Detail |
|---|
public int getQuantity()
public Vector3f getIntersectionPoint(int index)
index - the index of the point to obtain.
public float getIntersectionDistance(int index)
index - the index of the distance to obtain.
public float getClosestDistance()
public int getClosestPoint()
public int getFarthestPoint()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||