public Rectangle2D.Float getRectangle(Point2D.Float first, Point2D.Float last)
	{
		float firstX;
		float secondX;
		float firstY;
		float secondY;
		if (first.x < last.x)
		{
			firstX = first.x;
			secondX = last.x;
		}
		else
		{
			firstX = last.x;
			secondX = first.x;
		}
		if (first.y < last.y)
		{
			firstY = first.y;
			secondY = last.y;
		}
		else
		{
			firstY = last.y;
			secondY = first.y;
		}
		return new Rectangle2D.Float(firstX, firstY, secondX - firstX, secondY - firstY);
	}