public class Bounds
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
Constructor and Description |
---|
Bounds(Coordinate[] coordinates)
Creates a rectangular Bound given the the geographic coordinate of the 4 corners.
|
Bounds(Coordinate southWest,
Coordinate northEast,
Coordinate northWest,
Coordinate southEast)
Creates a rectangular Bound given the the geographic coordinate of the 4 corners.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
Coordinate |
getNorthEast()
Returns the coordinate of the north-east corner of the bound.
|
Coordinate |
getNorthWest()
Returns the coordinate of the north-west corner of the bound.
|
Coordinate |
getSouthEast()
Returns the coordinate of the south-east corner of the bound.
|
Coordinate |
getSouthWest()
Returns the coordinate of the south-east corner of the bound.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public Bounds(Coordinate southWest, Coordinate northEast, Coordinate northWest, Coordinate southEast)
southWest
- e.g (0,0)northEast
- e.g (w,h)northWest
- e.g (0,h)southEast
- e.g (w,0)java.lang.IllegalArgumentException
- if some parameter is nullpublic Bounds(Coordinate[] coordinates)
coordinates
- array with 4 non-null the geographic coordinate, ordered {southWest, northEast, northWest, southEast}.e.g {(0,0), (w,h), (0,h), (w,0)}
public Coordinate getNorthWest()
Coordinate
public Coordinate getNorthEast()
Coordinate
public Coordinate getSouthEast()
Coordinate
public Coordinate getSouthWest()
Coordinate
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
public void writeToParcel(Parcel dest, int flags)