fang
Class Coordinate
java.lang.Object
java.awt.geom.Point2D
fang.Coordinate
- All Implemented Interfaces:
- java.lang.Cloneable
public class Coordinate
- extends java.awt.geom.Point2D
This class represents an (x, y) coordinate within some space.
Nested classes/interfaces inherited from class java.awt.geom.Point2D |
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
Methods inherited from class java.awt.geom.Point2D |
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Coordinate
public Coordinate()
Coordinate
public Coordinate(double x,
double y)
Coordinate
public Coordinate(Coordinate other)
Coordinate
public Coordinate(java.awt.geom.Point2D other)
getX
public double getX()
- Specified by:
getX
in class java.awt.geom.Point2D
getY
public double getY()
- Specified by:
getY
in class java.awt.geom.Point2D
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.awt.geom.Point2D
setLocation
public void setLocation(double x,
double y)
- Specified by:
setLocation
in class java.awt.geom.Point2D
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object