private Rectangle BoundingRectOfPoints(LinkedList<Vector2> points)
	{
		Rectangle r = new Rectangle();
		
		if (points.size() > 0)
		{
			Vector2 min = new Vector2(points.get(0).X, points.get(0).Y);
			Vector2 max = min.Copy();
			
			ListIterator<Vector2> i = points.listIterator();
			
			while(i.hasNext())
			{
				Vector2 current = i.next();
				
				if (current.X < min.X)
				{
					min.X = current.X;
				}
				else if (current.X > max.X)
				{
					max.X = current.X;
				}
				
				if (current.Y < min.Y)
				{
					min.Y = current.Y;
				}
				else if (current.Y > max.Y)
				{
					max.Y = current.Y;
				}
			}
			
			Vector2 diff = max.Minus(min);
			
			r = new Rectangle(min.X, min.Y, diff.X, diff.Y);
		}
			
		return r;
	}