@Test
    public void testProject() {
        final Vector3f target = new Vector3f(3.8e+15f, 2.1e-25f, 0.0f);
        final Vector3f other = new Vector3f(2e-28f, -3.6e+12f, Float.POSITIVE_INFINITY);

        final Vector3f retval = target.project(other);

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