src/main/java/com/flowpowered/noise/module/modifier/Range.java
public void setBounds(double currentLower, double currentUpper, double newLower,
    		double newUpper) {
    	if (currentLower == currentUpper) {
    		throw new IllegalArgumentException("currentLower must not equal currentUpper. Both are " + currentUpper);
    	}
    	if (newLower == newUpper) {
    		throw new IllegalArgumentException("newLowerBound must not equal newUpperBound. Both are " + newUpper);
    	}
    	currentLowerBound = currentLower;
    	currentUpperBound = currentUpper;
    	newLowerBound = newLower;
    	newUpperBound = newUpper;
    	recalculateScaleBias();
    }
public void setBounds(double currentLower, double currentUpper, double newLower,
    		double newUpper) {
    	if (currentLower == currentUpper) {
    		throw new IllegalArgumentException("currentLower must not equal currentUpper. Both are " + currentUpper);
    	}
    	if (newLower == newUpper) {
    		throw new IllegalArgumentException("newLowerBound must not equal newUpperBound. Both are " + newUpper);
    	}
    	currentLowerBound = currentLower;
    	currentUpperBound = currentUpper;
    	newLowerBound = newLower;
    	newUpperBound = newUpper;
    	recalculateScaleBias();
    }
public void setBounds ( double currentLower , double currentUpper , double newLower , double newUpper ) { if ( currentLower == currentUpper ) { throw new IllegalArgumentException ( "currentLower must not equal currentUpper. Both are " + currentUpper ) ; } if ( newLower == newUpper ) { throw new IllegalArgumentException ( "newLowerBound must not equal newUpperBound. Both are " + newUpper ) ; } currentLowerBound = currentLower ; currentUpperBound = currentUpper ; newLowerBound = newLower ; newUpperBound = newUpper ; recalculateScaleBias ( ) ; }
Configure bounds for range module
@param currentLower current lower bound
@param currentUpper current upper bound
@param newLower new lower bound
@param newUpper new upper bound
Configure bounds for range module