some Java useful function for geogeaphy calculate