@Test public void testGetYWhenLatitudeIs1Degree() throws NoSuchFieldException { NicGeoPoint nicGeoPointDecimal = new NicGeoPointImpl(1.0, 1.0); NicGeoPoint nicGeoPointE6 = new NicGeoPointImpl(1000000, 1000000); final double expectedResult = LATITUDE_LINE_DISTANCE * 1; assertEquals(expectedResult, nicGeoPointDecimal.getY(), delta); assertEquals(expectedResult, nicGeoPointE6.getY(), delta); }
@Override public double getY() { final double latitude = convertE6ToDegrees(getLatitudeE6()); final double y = latitude * LATITUDE_LINE_DISTANCE; return y; }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public double getY() { final double latitude = convertE6ToDegrees(getLatitudeE6()); final double y = latitude * LATITUDE_LINE_DISTANCE; return y; } }
NicGeoPointImpl extends GeoPoint implements NicGeoPoint { @Override public double getY() { final double latitude = convertE6ToDegrees(getLatitudeE6()); final double y = latitude * LATITUDE_LINE_DISTANCE; return y; } 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 getY() { final double latitude = convertE6ToDegrees(getLatitudeE6()); final double y = latitude * LATITUDE_LINE_DISTANCE; return y; } 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 getY() { final double latitude = convertE6ToDegrees(getLatitudeE6()); final double y = latitude * LATITUDE_LINE_DISTANCE; return y; } 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();  }