|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.intersection.Distance
Distance provides functional methods for determining the
distances between one object and another. These methods are static to allow
for easy calling.
| Method Summary | |
static float |
distance(Vector3f point,
BoundingSphere sphere)
distance calculates the distance between a point and a
sphere. |
static float |
distance(Vector3f point,
Ray ray)
distance calculates the distance between a point and a ray. |
static float |
distance(Vector3f point1,
Vector3f point2)
distance calculates the distance between two points. |
static float |
distanceSquared(Vector3f p1,
Vector3f p2)
distanceSquared returns the distance between two points,
with the distance squared. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static float distance(Vector3f point1,
Vector3f point2)
distance calculates the distance between two points.
point1 - the first point to test.point2 - the second point to test.
public static float distanceSquared(Vector3f p1,
Vector3f p2)
distanceSquared returns the distance between two points,
with the distance squared. This allows for faster comparisons if relation
is important but actual distance is not.
p1 - the first point to test.p2 - the second point to test.
public static float distance(Vector3f point,
BoundingSphere sphere)
distance calculates the distance between a point and a
sphere.
point - the point to test.sphere - the sphere to test.
public static float distance(Vector3f point,
Ray ray)
distance calculates the distance between a point and a ray.
point - the point to test.ray - the ray to test.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||