public abstract class AbstractFixpPoint
extends java.awt.geom.Point2D
Constructor and Description |
---|
AbstractFixpPoint() |
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractFixpPoint |
create(long fixpX,
long fixpY) |
double |
distance(java.awt.geom.Point2D pt)
Returns the square of the distance from this
Point2D to a specified Point2D . |
double |
distanceSq(java.awt.geom.Point2D pt)
Returns the square of the distance from this
Point2D to a specified Point2D . |
boolean |
equals(java.lang.Object o) |
abstract long |
getFixpX() |
abstract long |
getFixpY() |
double |
getX() |
double |
getY() |
abstract void |
setFixpLocation(long fixpX,
long fixpY) |
void |
setLocation(double x,
double y) |
void |
setLocation(java.awt.geom.Point2D p)
Sets the location of this
Point2D to the same
coordinates as the specified Point2D object. |
java.lang.String |
toString() |
public abstract long getFixpX()
public abstract long getFixpY()
public abstract void setFixpLocation(long fixpX, long fixpY)
protected abstract AbstractFixpPoint create(long fixpX, long fixpY)
public double getX()
getX
in class java.awt.geom.Point2D
public double getY()
getY
in class java.awt.geom.Point2D
public void setLocation(double x, double y)
setLocation
in class java.awt.geom.Point2D
public void setLocation(java.awt.geom.Point2D p)
Point2D
to the same
coordinates as the specified Point2D
object.setLocation
in class java.awt.geom.Point2D
p
- the specified Point2D
to which to set
this Point2D
public double distanceSq(java.awt.geom.Point2D pt)
Point2D
to a specified Point2D
.distanceSq
in class java.awt.geom.Point2D
pt
- the specified point to be measured
against this Point2D
Point2D
to a specified Point2D
.public double distance(java.awt.geom.Point2D pt)
Point2D
to a specified Point2D
.distance
in class java.awt.geom.Point2D
pt
- the specified point to be measured
against this Point2D
Point2D
to a specified Point2D
.public boolean equals(java.lang.Object o)
equals
in class java.awt.geom.Point2D
public java.lang.String toString()
toString
in class java.lang.Object