GeoLine extends GeoObject { public double getNorthing() { final double northing = northEast.getLat() - southWest.getLat(); assert MathUtils.isBetween(northing, 0, 180) : "Northing not in [0, 180]: " + northing + ", " + this; return northing; } GeoLine(
            @Nonnull final GeoPoint southWest,
            @Nonnull final GeoPoint northEast); @SuppressWarnings({"ConstantConditions", "UnusedDeclaration"}) @Deprecated private  GeoLine(); @Nonnull @Override GeoPoint getOrigin(); @Nonnull @Override GeoPoint getCenter(); @Nonnull GeoPoint getSouthWest(); @Nonnull GeoPoint getNorthEast(); @Nonnull GeoLine withSouthWest(@Nonnull final GeoPoint southWest); @Nonnull GeoLine withNorthEast(@Nonnull final GeoPoint northEast); @Nonnull @Override GeoLine translate(@Nonnull final GeoVector vector); @Nonnull @Override GeoLine moveTo(@Nonnull final GeoPoint origin); double getNorthing(); double getEasting(); double getLengthMeters(); boolean isWrappedOnLongSide(); @Nonnull static GeoLine getShortestLine(
            @Nonnull final GeoPoint from,
            @Nonnull final GeoPoint to); double getHeading(); @Override boolean canEqual(@Nonnull final Object obj); @Override boolean equals(@Nullable final Object obj); @Override int hashCode();  }
@Test public void testGetNorthing() { LOG.info("testGetNorthing"); final GeoPoint s2 = new GeoPoint(-80.0, 0.0); final GeoPoint s1 = new GeoPoint(-20.0, 1.0); final GeoPoint o = new GeoPoint(0.0, 2.0); final GeoPoint n1 = new GeoPoint(20.0, 3.0); final GeoPoint n2 = new GeoPoint(80.0, 4.0); Assert.assertTrue(MathUtils.isAlmostEqual(60.0, new GeoLine(s2, s1).getNorthing())); Assert.assertTrue(MathUtils.isAlmostEqual(60.0, new GeoLine(s1, s2).getNorthing())); Assert.assertTrue(MathUtils.isAlmostEqual(20.0, new GeoLine(s1, o).getNorthing())); Assert.assertTrue(MathUtils.isAlmostEqual(20.0, new GeoLine(o, s1).getNorthing())); Assert.assertTrue(MathUtils.isAlmostEqual(40.0, new GeoLine(s1, n1).getNorthing())); Assert.assertTrue(MathUtils.isAlmostEqual(40.0, new GeoLine(n1, s1).getNorthing())); Assert.assertTrue(MathUtils.isAlmostEqual(20.0, new GeoLine(o, n1).getNorthing())); Assert.assertTrue(MathUtils.isAlmostEqual(20.0, new GeoLine(n1, o).getNorthing())); Assert.assertTrue(MathUtils.isAlmostEqual(60.0, new GeoLine(n1, n2).getNorthing())); Assert.assertTrue(MathUtils.isAlmostEqual(60.0, new GeoLine(n2, n1).getNorthing())); }