1. There is no C function.<p>What do you call <i>public static float distance(float latA, float lngA, float latB, float lngB) {</i><p>As I said <i>but that's not a huge deal.</i> Yes it's not a major slowdown, but a tight inner loop with a function call is begging for an inline.