public class Coordinate extends Object
Constructor and Description |
---|
Coordinate(int x,
int y,
int z)
Creates a new instance of Coordinate
|
Modifier and Type | Method and Description |
---|---|
int |
getX()
Returns the X coordinate
|
int |
getY()
Returns the Y coordinate
|
int |
getZ()
Returns the X coordinate
|
void |
setX(int x)
Sets the X coordinate
|
void |
setY(int y)
Sets the Y coordinate
|
void |
setZ(int z)
Sets the Z coordinate
|
public Coordinate(int x, int y, int z)
x
- The X coordinatey
- The Y coordinatez
- The Z coordinatepublic int getX()
public void setX(int x)
x
- The X coordinate to be setpublic int getY()
public void setY(int y)
y
- The Y coordinate to be setpublic int getZ()
public void setZ(int z)
z
- The Z coordinate to be setCopyright © 2015–2021 Fiji. All rights reserved.