@Test
    public void testSphericalToCartesian() {
        final Vector3f sphereCoords = new Vector3f(4.29497e+09f, 0.0f, 0.0f);
        final Vector3f store = new Vector3f(0.0f, 0.0f, 0.0f);

        final Vector3f retval = FastMath.sphericalToCartesian(sphereCoords, store);

        assertEquals(store, retval);

        assertNotNull(store);
        assertEquals(4294969900f, store.getX(), 0.01f);
        assertEquals(0.0f, store.getY(), 0.0f);
        assertEquals(0.0f, store.getZ(), 0.0f);

        assertNotNull(retval);
        assertEquals(4294969900f, retval.getX(), 0.01f);
        assertEquals(0.0f, retval.getY(), 0.0f);
        assertEquals(0.0f, retval.getZ(), 0.0f);
    }
Verifies that algorithms in {@link FastMath} are working correctly.

@author Kirill Vainer
jme3-core/src/test/java/com/jme3/math/FastMathTest.java