int maxY = pointY1;
long maxY = pointY1;
	public static final int getNewHeigth(int rotation,int width,int heigth,double cosR,double sinR)	{		if(rotation == -90 || rotation == 90 || rotation == 270 || rotation == -270){			return width;		}		else if(rotation == 360 || rotation == 180 || rotation == 0){			return heigth;		}		int pointY1 = MathUtil.round(0 * sinR + 0 * cosR);		int pointY2 = MathUtil.round(width *sinR + 0 *cosR);		int pointY3 = MathUtil.round(0 *sinR + heigth *cosR);		int pointY4 = MathUtil.round(width *sinR + heigth *cosR);		int minY = pointY1;		if(pointY2 < minY){			minY = pointY2;		}		if(pointY3 < minY){			minY = pointY3;		}		if(pointY4 < minY){			minY = pointY4;		}		int maxY = pointY1;		if(pointY2 > maxY){			maxY = pointY2;		}		if(pointY3 > maxY){			maxY = pointY3;		}		if(pointY4 > maxY){			maxY = pointY4;		}		return maxY - minY;	}