File-By-File
Coord

Coord

A coordinate is basically a PointXY, but with integers instead of doubles. This class is used to represent grid coordinates in path generation.

Methods

Coord(int x, int y)

Creates a new coordinate with the specified X and Y integer values.

Coord(Node node)

Creates a new coordinate from a Node object.

convertNodes(List<Node> nodes)

Converts a list of Node objects into a list of Coord objects.

x()

Returns the X-coordinate of this Coord.

y()

Returns the Y-coordinate of this Coord.

hashCode()

Returns a hash code value for the object.

equals(Object obj)

Indicates whether some other object is "equal to" this one.

toString()

Returns a string representation of the Coord in the format "(x, y)".