public static boolean isValidVector(Vector4f vector) {
        if (vector == null) {
            return false;
        }
        if (Float.isNaN(vector.x)
                || Float.isNaN(vector.y)
                || Float.isNaN(vector.z)
                || Float.isNaN(vector.w)) {
            return false;
        }
        if (Float.isInfinite(vector.x)
                || Float.isInfinite(vector.y)
                || Float.isInfinite(vector.z)
                || Float.isInfinite(vector.w)) {
            return false;
        }
        return true;
    }
Check a vector... if it is null or its floats are NaN or infinite,
return false.  Else return true.

@param vector the vector to check
@return true or false as stated above.
jme3-core/src/main/java/com/jme3/math/Vector4f.java