|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--applications.ClosestPoints
Inner Class Summary | |
static class |
ClosestPoints.Point
point in 2D |
static class |
ClosestPoints.Point1
point with id, implements Comparable using x-coordinates |
static class |
ClosestPoints.Point2
point with an integer field, implements Comparable using y-coordinates |
static class |
ClosestPoints.PointPair
pairs of points and their distance |
Constructor Summary | |
ClosestPoints()
|
Method Summary | |
static ClosestPoints.PointPair |
closestPair(ClosestPoints.Point1[] x)
|
static double |
dist(ClosestPoints.Point u,
ClosestPoints.Point v)
|
static void |
main(java.lang.String[] args)
test program |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ClosestPoints()
Method Detail |
public static double dist(ClosestPoints.Point u, ClosestPoints.Point v)
public static ClosestPoints.PointPair closestPair(ClosestPoints.Point1[] x)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |