@Test
    public void testDivide_byVector() {
        final Vector3f target = new Vector3f(0.0f, 8.63998e+37f, 3.23117e-27f);
        final Vector3f divideBy = new Vector3f(0.0f, Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY);

        final Vector3f retval = target.divide(divideBy);

        assertNotNull(retval);
        assertEquals(Float.NaN, retval.x, 0.0f);
        assertEquals(0.0f, retval.y, 0.0f);
        assertEquals(0.0f, retval.z, 0.0f);
    }
Verify that distance() doesn't always overflow when distanceSquared >
Float.MAX_VALUE .
jme3-core/src/test/java/com/jme3/math/Vector3fTest.java