@Test
    public void testScaleAdd() {
        final Vector3f target = new Vector3f();
        final Vector3f mult = new Vector3f(Float.POSITIVE_INFINITY, 5.60f, -1.74f);
        final Vector3f add = new Vector3f(-0.0f, -0.0f, 3.79f);

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

        assertEquals(target, retval);

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