public class Coord extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
x
The horizontal coordinate
|
int |
y
The vertical coordinate
|
| Constructor and Description |
|---|
Coord()
Creates a new coordinate object given with the (0,0) coordinates
|
Coord(Coord c)
Creates a new coordinate object given another Coord object i.e.
|
Coord(int x,
int y)
Creates a new coordinate object given the two coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Returns a string representation of the object coordinates
|
public Coord()
public Coord(int x,
int y)
x - The horizontal coordinate.y - The vertical coordinate.public Coord(Coord c)
c - The Coord object to be copied.Copyright © 2019 UCAR/Unidata. All rights reserved.