@Test public void doubleToIntTest() { int microdegrees = LatLongUtils.degreesToMicrodegrees(DEGREES); Assert.assertEquals(MICRO_DEGREES, microdegrees); }
public static int degreesToMicrodegrees(double coordinate) { return (int) (coordinate * CONVERSION_FACTOR); }
LatLongUtils { public static int degreesToMicrodegrees(double coordinate) { return (int) (coordinate * CONVERSION_FACTOR); } }
LatLongUtils { public static int degreesToMicrodegrees(double coordinate) { return (int) (coordinate * CONVERSION_FACTOR); } private  LatLongUtils(); }
LatLongUtils { public static int degreesToMicrodegrees(double coordinate) { return (int) (coordinate * CONVERSION_FACTOR); } private  LatLongUtils(); static int degreesToMicrodegrees(double coordinate); static LatLong fromString(String latLongString); static double latitudeDistance(int meters); static double longitudeDistance(int meters, double latitude); static double microdegreesToDegrees(int coordinate); static double[] parseCoordinateString(String coordinatesString, int numberOfCoordinates); static void validateLatitude(double latitude); static void validateLongitude(double longitude); static byte zoomForBounds(Dimension dimension, BoundingBox boundingBox, int tileSize); }
LatLongUtils { public static int degreesToMicrodegrees(double coordinate) { return (int) (coordinate * CONVERSION_FACTOR); } private  LatLongUtils(); static int degreesToMicrodegrees(double coordinate); static LatLong fromString(String latLongString); static double latitudeDistance(int meters); static double longitudeDistance(int meters, double latitude); static double microdegreesToDegrees(int coordinate); static double[] parseCoordinateString(String coordinatesString, int numberOfCoordinates); static void validateLatitude(double latitude); static void validateLongitude(double longitude); static byte zoomForBounds(Dimension dimension, BoundingBox boundingBox, int tileSize); static final double EQUATORIAL_RADIUS; static final double LATITUDE_MAX; static final double LATITUDE_MIN; static final double LONGITUDE_MAX; static final double LONGITUDE_MIN; }