org.holtz.zoe
Class Point

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.geom.Point2D.Double
          extended by org.holtz.zoe.Point
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Point
extends java.awt.geom.Point2D.Double

A point in a Zoe world that can compute range and bearing to other points in that world.

Author:
Brian Holtz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float
 
Field Summary
 
Fields inherited from class java.awt.geom.Point2D.Double
x, y
 
Method Summary
 double bearing(Point target, World world)
           
 double bearing(Point target, World world, double[] range)
           
static Point parse(java.lang.String text)
           
 double range(Point target, World world)
           
 java.lang.String toString()
           
 
Methods inherited from class java.awt.geom.Point2D.Double
getX, getY, setLocation
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

range

public double range(Point target,
                    World world)

bearing

public double bearing(Point target,
                      World world)

bearing

public double bearing(Point target,
                      World world,
                      double[] range)

parse

public static Point parse(java.lang.String text)

toString

public java.lang.String toString()
Overrides:
toString in class java.awt.geom.Point2D.Double