@Test
    public void testIsUnitVector() {
        assertFalse(new Vector3f(1.07f, 2.12f, 3.32f).isUnitVector());
        assertFalse(new Vector3f(1.07f, 2.12f, Float.NaN).isUnitVector());
        assertTrue(new Vector3f(1.0f, 0.0f, 0.0f).isUnitVector());
        assertTrue(new Vector3f(0.0f, 1.0f, 0.0f).isUnitVector());
        assertTrue(new Vector3f(0.0f, 0.0f, 1.0f).isUnitVector());
        assertTrue(new Vector3f(0.0f, 0.0f, -1.0f).isUnitVector());
        assertTrue(new Vector3f(-1.0f, 0.0f, 0.0f).isUnitVector());
        assertTrue(new Vector3f(0.0f, -1.0f, 0.0f).isUnitVector());
    }
Verify that distance() doesn't always overflow when distanceSquared >
Float.MAX_VALUE .
jme3-core/src/test/java/com/jme3/math/Vector3fTest.java