public float lengthSquared() {
        return x * x + y * y + z * z + w * w;
    }
<code>lengthSquared</code> calculates the squared value of the
magnitude of the vector.

@return the magnitude squared of the vector.
jme3-core/src/main/java/com/jme3/math/Vector4f.java