protected void addLineFault(float[][] tempBuffer, Random random, float faultHeight, float range) {
        int x1 = random.nextInt(size);
        int x2 = random.nextInt(size);
        int y1 = random.nextInt(size);
        int y2 = random.nextInt(size);


        for (int i = 0; i < size; i++) {
            for (int j = 0; j < size; j++) {
                float dist = ((x2 - x1) * (j - y1) - (y2 - y1) * (i - x1))
                        / (FastMath.sqrt(FastMath.sqr(x2 - x1) + FastMath.sqr(y2 - y1)));
                tempBuffer[i][j] += calcHeight(dist, random, faultHeight, range);
            }
        }
    }
Create a heightmap with linear step faults.
@param size size of heightmap
@param iterations number of iterations
@param minFaultHeight Height modified on each side
@param maxFaultHeight Height modified on each side
jme3-terrain/src/main/java/com/jme3/terrain/heightmap/FaultHeightMap.java