public static Point[] getMinMaxPointRotation(int width, int height, double radians) {
		DoublePoint cr = new DoublePoint(width/2, height/2); //Gets the center point

		DoublePoint[] p = { //Rotate the four points
				rotatePoint(0, 0, cr.x, cr.y, radians),
				rotatePoint(0, height, cr.x, cr.y, radians),
				rotatePoint(width, 0, cr.x, cr.y, radians),
				rotatePoint(width, height, cr.x, cr.y, radians) };

		//Correct point initialization in order to avoid problems with values
		//Initialization with 0 is not a great idea...
		int majorsize = width > height ? width : height;
		Point min = new Point(majorsize, majorsize);
		Point max = new Point(-majorsize, -majorsize);

		for(int i = 0; i < p.length; i++) { //check for values...
			Point po = p[i].toPoint();

			if (po.x < min.x) { min.x = po.x; }
			if (po.x > max.x) { max.x = po.x; }
			if (po.y < min.y) { min.y = po.y; }
			if (po.y > max.y) { max.y = po.y; } }
		
		return new Point[] { min, max }; } //return them as array