//Frissíti a Rectangle point_distance mezőjét a knn-be beadott pontnak a függvényében (comparator megvalósítás miatt szükséges)
		void DistToPoint(Point2D a)
		{

			//Lehetséges esetek:
			//(őszintén remélem a kommentelt "ábra" ( bár annak nem igazán mondható :D ) nem csúszott el
				  /**				*
			3.(nw)	* 1.(nw<a.x<ne) *	5.(ne)
					*	   a.y<		*
		*-*-*-*-*-*-*---------------*-*-*-*-*-*-*
			a.y<	|				|	a.y>
			2.		|	rectangle	|	2.
		(nw<a.y<ne)	|				|(nw<a.y<ne)
		*-*-*-*-*-*-*---------------*-*-*-*-*-*-*
					*				*
			4.(sw)	* 1.(nw<a.x<ne)	*	6.(se)
					*	  a.y>		**/


			// 1. eset(ek)
			if (a.x > this->Upper.x && a.x < this->Upper.x + this->Size.x)
			{
				point_distance = abs(a.y -  this->Upper.y);
			}
			// 2.eset(ek)
			else if (a.y >  this->Upper.y && a.y <  this->Size.y + this->Upper.y)
			{
				point_distance = abs(a.x - this->Upper.x);
			}
			//3.
			else if(a.x < this->Upper.x && a.y < this->Upper.y)
			{
				a.DistanceOfTwo(this->Upper);
				point_distance = a.ptopdistance;
			}
			//4.
			else if(a.x < this->Upper.x && a.y > this->Upper.y)
			{
				Point2D swcorner{Upper.x, Upper.y + Size.y};
				a.DistanceOfTwo(swcorner);
				point_distance = a.ptopdistance;
			}
			//5.
			else if(a.x > this->Upper.x + this->Size.x && a.y < this->Upper.y)
			{
				Point2D necorner{Upper.x + Size.x, Upper.y};
				a.DistanceOfTwo(necorner);
				point_distance = a.ptopdistance;
			}
			//6.
			else if(a.x > this->Upper.x + this->Size.x && a.y > this->Upper.y + this->Size.y)
			{
				Point2D secorner{Upper.x + Size.x, Upper.y + Size.y};
				a.DistanceOfTwo(secorner);
				point_distance = a.ptopdistance;
			}
		}