final public static float spherical_distance (float phi1,
public static final float spherical_distance (float phi1,
  final public static float spherical_distance (float phi1,						float lambda0,						float phi,						float lambda)  {    float pdiff = (float)Math.sin(((phi-phi1)/2));    float ldiff = (float)Math.sin((lambda-lambda0)/2);    float rval = (float)Math.sqrt((pdiff*pdiff) +				  (float)Math.cos(phi1)*(float)Math.cos(phi)*(ldiff*ldiff));        return 2.0f * (float)Math.asin(rval);  }