@Override
	public List<E> inRectangle(Vector corner1, Vector corner2) {
		ArrayList<E> toReturn = new ArrayList<>();
		
		for (E item : list){
			Vector p = item.getPosition();
			
			if (p.x >= corner1.x && p.x <= corner2.x &&
				p.y >= corner1.y && p.y <= corner2.y)
				list.add(item);
		}
		
		return toReturn;
	}