public float getAspect() {
        float h = height * (viewPortTop - viewPortBottom);
        float w = width * (viewPortRight - viewPortLeft);
        return w / h;
    }
Obtains the aspect ratio.

@return Width:Height ratio.
jme3-core/src/main/java/com/jme3/renderer/Camera.java