Coordinate

floodsim.model.grid.Coordinate
final case class Coordinate(x: Int, y: Int)

Represents a two-dimensional coordinate on a discrete Cartesian grid. Coordinates are zero-based: x and y start at 0 and increase to the right (x) and downward (y).

Value parameters

x

x-axis index of the cell

y

y-axis index of the cell

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product