operator + method

TileIndex operator +(
  1. TileIndex other
)

Adds two TileIndexs.

Implementation

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