public class PenetratingPoint extends java.lang.Object implements java.lang.Comparable<PenetratingPoint>
Modifier and Type | Class and Description |
---|---|
static class |
PenetratingPoint.DistanceComparator |
static class |
PenetratingPoint.IndexComparator |
Modifier and Type | Field and Description |
---|---|
Vector2d |
coords |
double |
distance |
Face |
face |
Vector3d |
normal |
Point3d |
position |
PenetrationRegion |
region |
Vertex3d |
vertex |
Constructor and Description |
---|
PenetratingPoint(Vertex3d aVertex,
Face opposingFace,
Vector2d pointBarycentricCoords,
Point3d nearestFacePoint,
Vector3d dispToNearestFace,
PenetrationRegion r) |
PenetratingPoint(Vertex3d vertex,
Point3d vpos,
Vector3d normal,
double distToSurface) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PenetratingPoint o) |
static PenetratingPoint.DistanceComparator |
createMaxDistanceComparator() |
static PenetratingPoint.DistanceComparator |
createMinDistanceComparator() |
double |
getContactArea()
Returns the average area associated with this contact, or -1
if this information is not available.
|
Face |
getFace() |
Vector3d |
getNormal() |
Point3d |
getPosition() |
public Vertex3d vertex
public Face face
public Vector2d coords
public Point3d position
public Vector3d normal
public double distance
public PenetrationRegion region
public PenetratingPoint(Vertex3d aVertex, Face opposingFace, Vector2d pointBarycentricCoords, Point3d nearestFacePoint, Vector3d dispToNearestFace, PenetrationRegion r)
public Face getFace()
public Vector3d getNormal()
public Point3d getPosition()
public double getContactArea()
public int compareTo(PenetratingPoint o)
compareTo
in interface java.lang.Comparable<PenetratingPoint>
public static PenetratingPoint.DistanceComparator createMaxDistanceComparator()
public static PenetratingPoint.DistanceComparator createMinDistanceComparator()