aima.search.map
Class Point2D

java.lang.Object
  extended by aima.search.map.Point2D

public class Point2D
extends java.lang.Object

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

Point2D

public Point2D(double x,
               double y)
Method Detail

getX

public double getX()

getY

public double getY()

distance

public double distance(Point2D pt)
Returns the Euclidean distance between a specified point and this point.