int Hash2D::getHashKey(const Point2D& a)
{
	int x = floor(a.getPx()/cellwidth);
	int y = floor(a.getPy()/cellwidth);
	return y*cols + x;
}