@Test
    public void testSetX() {
        final Vector3f retval = new Vector3f(0.0f, 0.0f, 0.0f).setX(3.0f);

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