@Test
    public void testScaleAdd2() {
        final Vector3f target = new Vector3f(4.86f, 6.10f, -1.74f);
        final Vector3f add = new Vector3f(-0.16f, -0.51f, 1.03f);

        final Vector3f retval = target.scaleAdd(1.99f, add);

        assertEquals(target, retval);

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