private static float areaElement(float x, float y) {
        return (float) Math.atan2(x * y, sqrt(x * x + y * y + 1));
    }
used to compute the solid angle

@param x tex coordinates
@param y tex coordinates
@return
jme3-core/src/main/java/com/jme3/environment/util/EnvMapUtils.java