@Test
    public void testDivide_byScalar() {
        final Vector3f target = new Vector3f(2e+28f, 7e+19f, 3.e+23f);

        final Vector3f retval = target.divide(0.0f);

        assertNotNull(retval);
        assertEquals(Float.POSITIVE_INFINITY, retval.x, 0.0f);
        assertEquals(Float.POSITIVE_INFINITY, retval.y, 0.0f);
        assertEquals(Float.POSITIVE_INFINITY, 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