|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aima.search.map.Point2D
public class Point2D
Simplified version of java.awt.geom.Point2D
. We do not
want dependencies to presentation layer packages here.
Constructor Summary | |
---|---|
Point2D(double x,
double y)
|
Method Summary | |
---|---|
double |
distance(Point2D pt)
Returns the Euclidean distance between a specified point and this point. |
double |
getX()
|
double |
getY()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Point2D(double x, double y)
Method Detail |
---|
public double getX()
public double getY()
public double distance(Point2D pt)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |