[]
Creates a new coordinate object given with the (0,0) coordinates
public Coord()
Creates a new coordinate object given the two coordinates.
public Coord(int x, int y)
| Type | Name | Description |
|---|---|---|
| int | x | The horizontal coordinate. |
| int | y | The vertical coordinate. |
Creates a new coordinate object given another Coord object i.e. copy constructor
public Coord(Coord c)
| Type | Name | Description |
|---|---|---|
| Coord | c | The Coord object to be copied. |