MathUtils { public static float angle(float x1, float y1, float x2, float y2) { return (float) Math.toDegrees(Math.atan2(x2 - x1, y2 - y1)); }  static float barryCentric(Vector3 p1, Vector3 p2, Vector3 p3, Vector2 pos); static float dst(float x1, float y1, float x2, float y2); static float angle(float x1, float y1, float x2, float y2);  }
@Test public void angle() throws Exception { assertEquals(45.0f, MathUtils.angle(0.0f,0.0f,1.0f,1.0f), 0.0f); }