public void setFactors(float factor1, float factor2) throws Exception {
        if ((factor1 + factor2) != 1.0f) {
            throw new Exception("factor1 and factor2 must add to 1.0");
        }


        this.factor1 = factor1;
        this.factor2 = factor2;
    }
<code>setFactors</code> sets the distribution of heightmaps.
For example, if factor1 is 0.6 and factor2 is 0.4, then 60% of
map1 will be used with 40% of map2. The two factors must add up
to 1.0.
@param factor1 the factor for map1.
@param factor2 the factor for map2.
@throws Exception if the factors do not add to 1.0.
jme3-terrain/src/main/java/com/jme3/terrain/heightmap/CombinerHeightMap.java