from Cell.hpp:31
struct Cell
{
int16_t x;
int16_t y;
int16_t cover;
int16_t area;
void set(int _x, int _y, int _cover, int _area)
{
setCoord(_x, _y);
setCover(_cover, _area);
}
void setCoord(int _x, int _y)
{
x = int16_t(_x);
y = int16_t(_y);
}
void setCover(int _cover, int _area)
{
cover = _cover;
area = _area;
}
void addCover(int _cover, int _area)
{
cover += _cover;
area += _area;
}
int packedCoord() const
{
return (y << 16) + x;
}
};