case classGridPoint(x: Int, y: Int) extends Ordered[GridPoint] with Product with Serializable
this represents an (x,y) point coordinate. arguably we should just use an
(Int, Int) tuple for this, but it's kind of nice to be able to do pt2.x
instead of pt2._1
Linear Supertypes
Serializable, Serializable, Product, Equals, Ordered[GridPoint], Comparable[GridPoint], AnyRef, Any
this represents an (x,y) point coordinate. arguably we should just use an (Int, Int) tuple for this, but it's kind of nice to be able to do pt2.x instead of pt2._1