return maxX - minX;
return (int) (maxX - minX);
	public static final int getNewWidth(int rotation,int width,int heigth,double cosR,double sinR)	{		if(rotation == -90 || rotation == 90 || rotation == 270 || rotation == -270){			return heigth;		}		else if(rotation == 360 || rotation == 180 || rotation == 0){			return width;		}		int pointX1 = MathUtil.round(0 * cosR - 0 * sinR);		int pointX2 = MathUtil.round(width *cosR - 0 *sinR);		int pointX3 = MathUtil.round(0 *cosR - heigth *sinR);		int pointX4 = MathUtil.round(width *cosR - heigth *sinR);		int minX = pointX1;		if(pointX2 < minX){			minX = pointX2;		}		if(pointX3 < minX){			minX = pointX3;		}		if(pointX4 < minX){			minX = pointX4;		}		int maxX = pointX1;		if(pointX2 > maxX){			maxX = pointX2;		}		if(pointX3 > maxX){			maxX = pointX3;		}		if(pointX4 > maxX){			maxX = pointX4;		}		return maxX - minX;	}