@Test
    public void testGenerateOrthonormalBasis3() {
        final Vector3f u = new Vector3f();
        final Vector3f v = new Vector3f();
        final Vector3f w = new Vector3f(-1.24672e-39f, -1.25343e-39f, -2.08336e-36f);

        Vector3f.generateOrthonormalBasis(u, v, w);

        assertNotNull(v);
        assertEquals(Float.NEGATIVE_INFINITY, v.x, 0.0f);
        assertEquals(Float.POSITIVE_INFINITY, v.y, 0.0f);
        assertEquals(Float.POSITIVE_INFINITY, v.z, 0.0f);
        assertNotNull(u);
        assertEquals(0.0f, u.x, 0.0f);
        assertEquals(Float.NEGATIVE_INFINITY, u.y, 0.0f);
        assertEquals(Float.POSITIVE_INFINITY, u.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