@Test public void testGetXWhenLatitudeAndLongitudeAre15Degrees() { NicGeoPoint nicGeoPointDecimal = new NicGeoPointImpl(15.0, 15.0); NicGeoPoint nicGeoPointE6 = new NicGeoPointImpl(15000000, 15000000); final double expectedResult = 107550.455 * 15; assertEquals(expectedResult, nicGeoPointDecimal.getX(), delta); assertEquals(expectedResult, nicGeoPointE6.getX(), delta); }
@Override public double getX() { final double longitude = convertE6ToDegrees(getLongitudeE6()); final double x = longitude * getLongitudeDistanceInMeters(); return x; }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public double getX() { final double longitude = convertE6ToDegrees(getLongitudeE6()); final double x = longitude * getLongitudeDistanceInMeters(); return x; } }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public double getX() { final double longitude = convertE6ToDegrees(getLongitudeE6()); final double x = longitude * getLongitudeDistanceInMeters(); return x; } NicGeoPointImpl();  NicGeoPointImpl(final IGeoPoint geoPoint);  NicGeoPointImpl(final int latitudeE6, final int longitudeE6);  NicGeoPointImpl(final double latitude, final double longitude); }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public double getX() { final double longitude = convertE6ToDegrees(getLongitudeE6()); final double x = longitude * getLongitudeDistanceInMeters(); return x; } NicGeoPointImpl();  NicGeoPointImpl(final IGeoPoint geoPoint);  NicGeoPointImpl(final int latitudeE6, final int longitudeE6);  NicGeoPointImpl(final double latitude, final double longitude); @Override double getX(); @Override double getY(); @Override void setXY(final double x, final double y); @Override double calculateDistanceTo(final NicGeoPoint point); @Override double getDivergence(); @Override void setDivergence(double divergence); @Override boolean equals(final Object o); @Override int hashCode(); @Override int compareTo(NicGeoPoint other); @Override String toString(); }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public double getX() { final double longitude = convertE6ToDegrees(getLongitudeE6()); final double x = longitude * getLongitudeDistanceInMeters(); return x; } NicGeoPointImpl();  NicGeoPointImpl(final IGeoPoint geoPoint);  NicGeoPointImpl(final int latitudeE6, final int longitudeE6);  NicGeoPointImpl(final double latitude, final double longitude); @Override double getX(); @Override double getY(); @Override void setXY(final double x, final double y); @Override double calculateDistanceTo(final NicGeoPoint point); @Override double getDivergence(); @Override void setDivergence(double divergence); @Override boolean equals(final Object o); @Override int hashCode(); @Override int compareTo(NicGeoPoint other); @Override String toString();  }