protected void adjustMinMax(LocalTile tile){
  if (this.extremeElevations == null && tile != null) {
    this.extremeElevations=new double[]{tile.minElevation,tile.maxElevation};
  }
 else   if (tile != null) {
    if (tile.minElevation < this.extremeElevations[0])     this.extremeElevations[0]=tile.minElevation;
    if (tile.maxElevation > this.extremeElevations[1])     this.extremeElevations[1]=tile.maxElevation;
  }
 else {
    double min=Double.MAX_VALUE;
    double max=-min;
    for (    LocalTile t : this.tiles) {
      if (t.minElevation < min)       min=t.minElevation;
      if (t.maxElevation > max)       max=t.maxElevation;
    }
    this.extremeElevations=new double[]{min != Double.MAX_VALUE ? min : 0,max != -Double.MAX_VALUE ? max : 0};
  }
}

protected void adjustMinMax ( LocalTile tile ) { if ( this . extremeElevations == null && tile != null ) { this . extremeElevations = new double [ ] { tile . minElevation , tile . maxElevation } ; } else if ( tile != null ) { if ( tile . minElevation < this . extremeElevations [ 0 ] ) this . extremeElevations [ 0 ] = tile . minElevation ; if ( tile . maxElevation > this . extremeElevations [ 1 ] ) this . extremeElevations [ 1 ] = tile . maxElevation ; } else { double min = Double . MAX_VALUE ; double max = - min ; for ( LocalTile t : this . tiles ) { if ( t . minElevation < min ) min = t . minElevation ; if ( t . maxElevation > max ) max = t . maxElevation ; } this . extremeElevations = new double [ ] { min != Double . MAX_VALUE ? min : 0 , max != - Double . MAX_VALUE ? max : 0 } ; } }
updates the min and max elevations for this elevation model to account for a specified tile .
