List of utility methods to do Long to
String | longToTimeString(long time) long To Time String long min = (time / 1000) / 60; long sec = (time / 1000) % 60; return String.format("%02d:%02d", min, sec); |
int | longToX(double longitudeDegrees, double radius) long To X double longitude = Math.toRadians(longitudeDegrees); return (int) (radius * longitude); |
int | longToX(double longitudeDegrees, double radius) long To X double longitude = Math.toRadians(longitudeDegrees); return (int) (radius * longitude); |
int | longToX(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; |
long | longToZigZag(final long n) long To Zig Zag return (n << 1) ^ (n >> 63);
|