public float getW() {
        return w;
    }
Returns the W (real) component. The quaternion is unaffected.

@return the value of the {@link #w} component
jme3-core/src/main/java/com/jme3/math/Quaternion.java