@Test
public void testAtan2()
{

    // assertEquals(0, AngleCalc.atan2(0, 0), 1e-4);
    // assertEquals(0, AngleCalc.atan2(-0.002, 0), 1e-4);
    assertEquals(45, AngleCalc.atan2(5, 5) * 180 / Math.PI, 1e-2);
    assertEquals(-45, AngleCalc.atan2(-5, 5) * 180 / Math.PI, 1e-2);
    assertEquals(11.14, AngleCalc.atan2(1, 5) * 180 / Math.PI, 1);
    assertEquals(180, AngleCalc.atan2(0, -5) * 180 / Math.PI, 1e-2);
    assertEquals(-90, AngleCalc.atan2(-5, 0) * 180 / Math.PI, 1e-2);
    assertEquals(90, Math.atan2(1, 0) * 180 / Math.PI, 1e-2);
    assertEquals(90, AngleCalc.atan2(1, 0) * 180 / Math.PI, 1e-2);
}