MathUtils { public static float dst(float x1, float y1, float x2, float y2) { return (float) Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow((y2 - y1), 2)); }  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 dst() throws Exception { assertEquals(1.0f, MathUtils.dst(1.0f, 1.0f, 2.0f, 1.0f), 0.0f); }