@Test
    public void testProjectLocal() {
        final Vector3f target = new Vector3f(-2.9e+17f, 3.9e-34f, 3.8e+20f);
        final Vector3f other = new Vector3f(5.4e-20f, -2.6e+36f, Float.NaN);

        final Vector3f retval = target.projectLocal(other);

        assertEquals(target, retval);

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