public void centre(){
			for (int i=0;i<points.length;i++){
				if(points[i][0] < xMin) xMin = points[i][0];
				if(points[i][1] < yMin) yMin = points[i][1];
				if(points[i][0] > xMax) xMax = points[i][0];
				if(points[i][1] > yMax) yMax = points[i][1];
			}

			
			zoom = Math.min(getWidth()/(xMax-xMin),getHeight()/(yMax-yMin));
			xCam = (xMax+xMin)/2;
			yCam = (yMax+yMin)/2;
			
			System.out.println("Min: " + xMin + ";" + yMin);
			System.out.println("Max: " + xMax + ";" + yMax);
			System.out.println("\nCenter: " + xCam + " ; " + yCam + " ; zoom: " + zoom);
		}