@Override
 public float getPercentageDone(final float n, final float n2, final float n3, final float n4) {
   final float n5 = n / n2 - 1.0f;
   return n3 + n4 * FloatMath.sqrt(1.0f - n5 * n5);
 }
Ejemplo n.º 2
0
 public float distance(final float n, final float n2, final float n3, final float n4) {
   final float n5 = n3 - n;
   final float n6 = n4 - n2;
   return FloatMath.sqrt(n5 * n5 + n6 * n6);
 }