|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vclip.ClosestPointPair
Describes a pair of closest points and features between two polyhedra or polytrees.
Field Summary | |
double |
dist
Distance between the two points |
Feature |
feat1
Closest feature on the first polyhedron. |
Feature |
feat2
Closest feature on the second polyhedron. |
javax.vecmath.Vector3d |
nrml
Normal (in coordinates of the first polyhedron). |
javax.vecmath.Point3d |
pnt1
Closest point on the first polyhedron. |
javax.vecmath.Point3d |
pnt2
Closest point on the second polyhedron. |
Constructor Summary | |
ClosestPointPair()
Creates a ClosestPointPair and initializes it as being empty. |
|
ClosestPointPair(ClosestPointPair pair)
Creates a ClosestPointPair which is a copy of an existing one. |
Method Summary | |
void |
clear()
Clears the values in this pair. |
boolean |
epsilonEquals(ClosestPointPair pair,
double eps)
Returns true if the contact points for this pair are within epsilon of the contact points of the argument pair. |
boolean |
featureEquals(ClosestPointPair pair)
Returns true if this pair has the same features as the argument pair. |
boolean |
isClear()
Returns true if this pair has no set value. |
void |
set(ClosestPointPair pair)
Sets this pair to the value of another one. |
void |
setFeatures(Feature f1,
Feature f2)
Sets the closest features. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public javax.vecmath.Point3d pnt1
public javax.vecmath.Point3d pnt2
public javax.vecmath.Vector3d nrml
public Feature feat1
public Feature feat2
public double dist
Constructor Detail |
public ClosestPointPair()
public ClosestPointPair(ClosestPointPair pair)
pair
- pair to copy fromMethod Detail |
public void set(ClosestPointPair pair)
pair
- pair to copy frompublic void clear()
public boolean isClear()
public void setFeatures(Feature f1, Feature f2)
f1
- First featuref2
- Second featurepublic boolean featureEquals(ClosestPointPair pair)
pair
- pair to check features against
public boolean epsilonEquals(ClosestPointPair pair, double eps)
pair
- pair to check features againsteps
- tolerance for comparing points
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |