org.holtz.zoe
Class Point
java.lang.Object
java.awt.geom.Point2D
java.awt.geom.Point2D.Double
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 classes/interfaces inherited from class java.awt.geom.Point2D |
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
Fields inherited from class java.awt.geom.Point2D.Double |
x, y |
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 |
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