Java Utililty Methods Long to

List of utility methods to do Long to

Description

The list of methods to do Long to are organized into topic(s).

Method

StringlongToTimeString(long time)
long To Time String
long min = (time / 1000) / 60;
long sec = (time / 1000) % 60;
return String.format("%02d:%02d", min, sec);
intlongToX(double longitudeDegrees, double radius)
long To X
double longitude = Math.toRadians(longitudeDegrees);
return (int) (radius * longitude);
intlongToX(double longitudeDegrees, double radius)
long To X
double longitude = Math.toRadians(longitudeDegrees);
return (int) (radius * longitude);
intlongToX(final double longitude, final int zoom)
get the x tile index for specified longitude and zoom level
int xtile = (int) Math.floor((longitude + 180) / 360 * (1 << zoom));
return xtile;
longlongToZigZag(final long n)
long To Zig Zag
return (n << 1) ^ (n >> 63);