public static int getDirFromDelta(int x, int y)
	{
		if(x < 0)
		{
			if(y < 0)
			{
				return UP_LEFT;
			}
			else if(y == 0)
			{
				return LEFT;
			}
			else
			{
				return DOWN_LEFT;
			}
		}
		else if(x == 0)
		{
			if(y < 0)
			{
				return UP;
			}
			else if(y == 0)
			{
				return NONE;
			}
			else
			{
				return DOWN;
			}
		}
		else
		{
			if(y < 0)
			{
				return UP_RIGHT;
			}
			else if(y == 0)
			{
				return RIGHT;
			}
			else
			{
				return DOWN_RIGHT;
			}
		}
	}