public abstract class AbstractPoint<T extends AbstractPoint>
extends java.lang.Object
Constructor and Description |
---|
AbstractPoint() |
Modifier and Type | Method and Description |
---|---|
double |
getDistance(AbstractPoint<T> otherPosition) |
double |
getDistance(int x,
int y) |
abstract T |
getPoint() |
int |
getX() |
int |
getY() |
public abstract T getPoint()
public int getX()
public int getY()
public double getDistance(AbstractPoint<T> otherPosition)
public double getDistance(int x, int y)