public class TPoint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator |
byX |
static java.util.Comparator |
byY |
int |
x |
int |
y |
int |
z |
Constructor and Description |
---|
TPoint()
Creates a new instance of TPoint
|
TPoint(int x,
int y) |
TPoint(int x,
int y,
int z) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
double |
distance2D(TPoint p) |
int |
getLeft() |
int |
getTop() |
java.lang.String |
toString() |
public int x
public int y
public int z
public static java.util.Comparator byX
public static java.util.Comparator byY
public TPoint()
public TPoint(int x, int y)
public TPoint(int x, int y, int z)
public java.lang.String toString()
toString
in class java.lang.Object
public double distance2D(TPoint p)
public int getLeft()
public int getTop()
public java.lang.Object clone()
clone
in class java.lang.Object