public class RectCoordinates
extends java.lang.Object
| Constructor and Description |
|---|
RectCoordinates(int x,
int y,
int z)
Class constructor accepting x, y, and z coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Overrides the equals checking if the x, y, and z coordinates are equal.
|
int |
getX()
Access method for the x-coordinate.
|
int |
getY()
Access method for the y-coordinate.
|
int |
getZ()
Access method for the z-coordinate
|
java.lang.String |
toString()
Gives the x, y, and z coordinates in String form.
|
public RectCoordinates(int x,
int y,
int z)
x - the x coordinatey - the y coordinatez - the z coordinatepublic int getX()
public int getY()
public int getZ()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the other objectpublic java.lang.String toString()
toString in class java.lang.Object