private int doScale(int number,double factor){
  return (int)StrictMath.round(number * factor);
}

private int doScale ( int number , double factor ) { return ( int ) StrictMath . round ( number * factor ) ; }
scales the given number with the provided scale factor
