@Test
    public void testGenerateComplementBasis3() {
        final Vector3f u = new Vector3f();
        final Vector3f v = new Vector3f();
        final Vector3f w = new Vector3f(-7.0f, 1.075f, 4.3f);

        Vector3f.generateComplementBasis(u, v, w);

        assertNotNull(v);
        assertEquals(-0.9159, v.x, 0.001f);
        assertEquals(-8.2152, v.y, 0.001f);
        assertEquals(0.5626, v.z, 0.001f);
        assertNotNull(u);
        assertEquals(-0.5234f, u.x, 0.001f);
        assertEquals(0.0f, u.y, 0.0f);
        assertEquals(-0.8520f, u.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