static int findGridCell(final float min, final float max, final float val) {
        final float fIndex = CELLS * ((val - min) / (max - min));
        final int iIndex = (int) fIndex;
        return iIndex < CELLS ? (iIndex >= 0 ? iIndex : 0) : (CELLS - 1);
    }
A private constructor to inhibit instantiation of this class.
jme3-core/src/main/java/com/jme3/util/mikktspace/MikktspaceTangentGenerator.java