public static Rectangle scaleRectangle(Rectangle rect,float scaleFactor){
  return new Rectangle(Math.round(rect.x * scaleFactor),Math.round(rect.y * scaleFactor),Math.round(rect.width * scaleFactor),Math.round(rect.height * scaleFactor));
}

public static Rectangle scaleRectangle ( Rectangle rect , float scaleFactor ) { return new Rectangle ( Math . round ( rect . x * scaleFactor ) , Math . round ( rect . y * scaleFactor ) , Math . round ( rect . width * scaleFactor ) , Math . round ( rect . height * scaleFactor ) ) ; }
scales the given rectangle by the given scale factor .
