public float lengthSquared() {
        return x * x + y * y + z * z;
    }
Returns the square of the length. The current instance is unaffected.

@return the sum of the squared components (not negative)
jme3-core/src/main/java/com/jme3/math/Vector3f.java