@Test
    public void testAsin() {
        final float HALF_PI = 0.5f * (float)Math.PI;

        assertEquals(-HALF_PI, FastMath.asin(-2.0f), 0.01f);
        assertEquals(HALF_PI, FastMath.asin(2.0f), 0.01f);
        assertEquals(HALF_PI, FastMath.asin(Float.POSITIVE_INFINITY), 0.0f);
        assertEquals(0.0f, FastMath.asin(0.0f), 0.0f);
        assertEquals(0.523f, FastMath.asin(0.5f), 0.01f);
        assertEquals(-1.570f, FastMath.asin(-0x1p+113f), 0.01f);
    }
Verifies that algorithms in {@link FastMath} are working correctly.

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