public void resize(int width, int height, boolean fixAspect) {
        this.width = width;
        this.height = height;
        onViewPortChange();

        if (fixAspect) {
            float h = height * (viewPortTop - viewPortBottom);
            float w = width * (viewPortRight - viewPortLeft);
            float aspectRatio = w / h;
            frustumRight = frustumTop * aspectRatio;
            frustumLeft = -frustumRight;
            onFrustumChange();
        }
    }
Resizes this camera's view for the specified display size. Invoked by an
associated {@link RenderManager} to notify the camera of changes to the
display dimensions.

@param width the new width of the display, in pixels
@param height the new height of the display, in pixels
@param fixAspect if true, recompute the camera's frustum to preserve its
    prior aspect ratio
jme3-core/src/main/java/com/jme3/renderer/Camera.java