MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / extend

Method extend

CodenameOne/src/com/codename1/maps/MapBounds.java:96–102  ·  view source on GitHub ↗
(LatLng point)

Source from the content-addressed store, hash-verified

94
95 /// Returns a new box that contains both this box and `point`.
96 public MapBounds extend(LatLng point) {
97 return new MapBounds(
98 new LatLng(Math.min(southWest.getLatitude(), point.getLatitude()),
99 Math.min(southWest.getLongitude(), point.getLongitude())),
100 new LatLng(Math.max(northEast.getLatitude(), point.getLatitude()),
101 Math.max(northEast.getLongitude(), point.getLongitude())));
102 }
103
104 /// The span between the north and south edges in degrees.
105 public double getLatitudeSpan() {

Callers 15

capture.jsFile · 0.45
naFunction · 0.45
XaFunction · 0.45
gFunction · 0.45
sbFunction · 0.45
invoke2Method · 0.45
_collect_alertsFunction · 0.45
_collect_alertsFunction · 0.45
mainFunction · 0.45
expandFunction · 0.45
mainFunction · 0.45

Calls 4

minMethod · 0.95
maxMethod · 0.95
getLatitudeMethod · 0.65
getLongitudeMethod · 0.65

Tested by 1