cammons
Class TPoint
java.lang.Object
cammons.TPoint
public class TPoint
- extends java.lang.Object
Field Summary |
static java.util.Comparator |
byX
|
static java.util.Comparator |
byY
|
int |
x
|
int |
y
|
int |
z
|
Constructor Summary |
TPoint()
Creates a new instance of TPoint |
TPoint(int x,
int y)
|
TPoint(int x,
int y,
int z)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
public int x
y
public int y
z
public int z
byX
public static java.util.Comparator byX
byY
public static java.util.Comparator byY
TPoint
public TPoint()
- Creates a new instance of TPoint
TPoint
public TPoint(int x,
int y)
TPoint
public TPoint(int x,
int y,
int z)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
distance2D
public double distance2D(TPoint p)
getLeft
public int getLeft()
getTop
public int getTop()
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object