public class LatLngBounds extends Options
| Modifier and Type | Field and Description |
|---|---|
protected LatLng |
ne
The northeast corner of the rectangle.
|
protected LatLng |
sw
The southwest corner of the rectangle.
|
| Constructor and Description |
|---|
LatLngBounds(double north,
double south,
double east,
double west)
Create a new bounds given individual latitudes and longitudes.
|
LatLngBounds(LatLng sw,
LatLng ne)
Create a new bounds given SW and NE coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(LatLng point)
Returns true if the given point is in this bounds.
|
boolean |
equals(Object o) |
void |
extend(LatLng point)
Extends this bounds to contain the given point.
|
LatLng |
getCenter()
Computes the center of this LatLngBounds.
|
LatLng |
getNortheast()
Returns the north-east corner of this bounds.
|
LatLng |
getSouthwest()
Returns the south-west corner of this bounds.
|
String |
toString() |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittransformForClientpublic LatLngBounds(LatLng sw, LatLng ne)
sw - The southwest coordinate.ne - The northeast coordinate.public LatLngBounds(double north,
double south,
double east,
double west)
north - The north latitude.south - The south latitude.east - The east latitude.west - The west latitude.public boolean contains(LatLng point)
point - The point to check.public void extend(LatLng point)
point - The reference point.public LatLng getCenter()
public LatLng getNortheast()
public LatLng getSouthwest()
Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.