Program Listing for File Cell.h¶
↰ Return to documentation for file (necsim/Cell.h
)
// This file is part of necsim project which is released under MIT license.
// See file **LICENSE.txt** or visit https://opensource.org/licenses/MIT) for full license details.
#ifndef CELL_H
#define CELL_H
namespace necsim
{
struct Cell
{
long x;
long y;
Cell() : x(0), y(0)
{
}
Cell(long x, long y) : x(x), y(y)
{
}
Cell &operator=(Cell const &c) = default;
bool operator==(Cell const &c)
{
return x == c.x && y == c.y;
}
bool operator!=(Cell const &c)
{
return !(this->operator==(c));
}
};
double distanceBetweenCells(const Cell &c1, const Cell &c2);
}
#endif // CELL_H