public class HeightPoint extends Point
java.awt.Point
,
Serialized FormPoint2D.Double, Point2D.Float
Modifier and Type | Field and Description |
---|---|
private int |
z
The new variable value.
|
Constructor and Description |
---|
HeightPoint()
Default constructor.
|
HeightPoint(int x,
int y,
int z)
Extra constructor to deal with height.
|
Modifier and Type | Method and Description |
---|---|
int |
getZ()
Accessor method for height.
|
void |
setZ(int z)
Mutator method for height.
|
String |
toString()
Gives a String representation of the object.
|
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, translate
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
public HeightPoint()
public HeightPoint(int x, int y, int z)
x
- : x coordinate valuey
- : y coordinate valuez
- : height valuejava.awt.Point#Point(int,int)