GeoLine extends GeoObject { public boolean isWrappedOnLongSide() { return getEasting() >= 180.0; } 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 testIsWrappedOnLongSide1() { LOG.info("testIsWrappedOnLongSide1"); final GeoPoint a = new GeoPoint(0.0, 0.0); final GeoPoint b = new GeoPoint(1.0, 1.0); final GeoLine shortLine = new GeoLine(a, b); final GeoLine longLine = new GeoLine(b, a); Assert.assertFalse(shortLine.isWrappedOnLongSide()); Assert.assertTrue(longLine.isWrappedOnLongSide()); }
@Test public void testIsWrappedOnLongSide2() { LOG.info("testIsWrappedOnLongSide2"); final GeoPoint a = new GeoPoint(0.0, 179.0); final GeoPoint b = new GeoPoint(0.0, -179.0); final GeoLine shortLine = new GeoLine(a, b); final GeoLine longLine = new GeoLine(b, a); Assert.assertFalse(shortLine.isWrappedOnLongSide()); Assert.assertTrue(longLine.isWrappedOnLongSide()); }