@Test public void fromWSEN() { assertEquals(BoundingBox.fromWSEN(1, 2,3, 4), BoundingBox.fromWSEN(1, 2,3, 4)); assertEquals(BoundingBox.fromWSEN(3, 44,32, 41), BoundingBox.fromWSEN(3, 44,32, 41)); assertNotEquals(BoundingBox.fromWSEN(11, 2,3, 4), (BoundingBox.fromWSEN(10, 21,93, 4))); assertNotEquals(BoundingBox.fromWSEN(1, 21,3, 4), (BoundingBox.fromWSEN(11, 12,43, 14))); }
public static BoundingBox fromWSEN(double west, double south, double east, double north) { return new BoundingBox(north, east, south, west); }
BoundingBox { public static BoundingBox fromWSEN(double west, double south, double east, double north) { return new BoundingBox(north, east, south, west); } }
BoundingBox { public static BoundingBox fromWSEN(double west, double south, double east, double north) { return new BoundingBox(north, east, south, west); } protected  BoundingBox(double north, double east, double south, double west); }
BoundingBox { public static BoundingBox fromWSEN(double west, double south, double east, double north) { return new BoundingBox(north, east, south, west); } protected  BoundingBox(double north, double east, double south, double west); static BoundingBox fromWestSouthEastNorthArray(String[] bbox); static BoundingBox fromWSEN(double west, double south, double east, double north); static BoundingBox fromNominatim(JSONArray json); static BoundingBox fromPositionAndRadius(IPosition position, double distanceInMeters); static double getLongitude(double longitude); static double getLatitude(double latitude); String asSqlQueryString(String columnLongitude, String columnLatitude); List<PlantsCache.Marker> selectPositionsInsideAfterSQLQuery(List<PlantsCache.Marker> positions); static double distanceInMetersBetween(IPosition p1, IPosition p2); static BoundingBox fromNESW(double north, double east, double south, double west); boolean contains(Position position); Position middle(); static BoundingBox ofTileAt(TilePosition position); double southBorderLatitude(); double northBorderLatitude(); Position southWestCorner(); Position southEastCorner(); Position northWestCorner(); Position northEastCorner(); @Override boolean equals(Object obj); @Override int hashCode(); JSONObject toJSON(); static BoundingBox fromJSON(JSONObject json); double deltaLongitude(); boolean crosses180(); String toExtentString(); }
BoundingBox { public static BoundingBox fromWSEN(double west, double south, double east, double north) { return new BoundingBox(north, east, south, west); } protected  BoundingBox(double north, double east, double south, double west); static BoundingBox fromWestSouthEastNorthArray(String[] bbox); static BoundingBox fromWSEN(double west, double south, double east, double north); static BoundingBox fromNominatim(JSONArray json); static BoundingBox fromPositionAndRadius(IPosition position, double distanceInMeters); static double getLongitude(double longitude); static double getLatitude(double latitude); String asSqlQueryString(String columnLongitude, String columnLatitude); List<PlantsCache.Marker> selectPositionsInsideAfterSQLQuery(List<PlantsCache.Marker> positions); static double distanceInMetersBetween(IPosition p1, IPosition p2); static BoundingBox fromNESW(double north, double east, double south, double west); boolean contains(Position position); Position middle(); static BoundingBox ofTileAt(TilePosition position); double southBorderLatitude(); double northBorderLatitude(); Position southWestCorner(); Position southEastCorner(); Position northWestCorner(); Position northEastCorner(); @Override boolean equals(Object obj); @Override int hashCode(); JSONObject toJSON(); static BoundingBox fromJSON(JSONObject json); double deltaLongitude(); boolean crosses180(); String toExtentString();  }