java.lang.Object
com.c1games.terminal.algo.Coords
public class Coords
extends java.lang.Object
Two-dimensional, integer coordinates.
-
Field Summary
Fields
Modifier and Type |
Field |
Description |
int |
x |
|
int |
y |
|
-
Constructor Summary
Constructors
Constructor |
Description |
Coords(int x,
int y) |
|
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
Constructor Details
-
public Coords(int x,
int y)
-
Method Details
-
public java.util.List<Coords> neighbors()
-
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
-
public float distance(
Coords other)