@Test
    public void testSet() {
        Vector3f target = new Vector3f(0.0f, 0.0f, 0.0f);
        target.set(0, 5.0f);
        assertEquals(target.x, 5.0, 0.0f);

        target = new Vector3f(0.0f, 0.0f, 0.0f);
        target.set(1, 3.0f);
        assertEquals(target.y, 3.0, 0.0f);

        target = new Vector3f(0.0f, 0.0f, 0.0f);
        target.set(2, 8.0f);
        assertEquals(target.z, 8.0, 0.0f);
    }
Verify that distance() doesn't always overflow when distanceSquared >
Float.MAX_VALUE .
jme3-core/src/test/java/com/jme3/math/Vector3fTest.java