operator - method

TileIndex operator -(
  1. TileIndex other
)

Subtracts two TileIndexs.

Implementation

TileIndex operator -(TileIndex other) {
  return TileIndex(x - other.x, y - other.y);
}