public class BBox extends Object
Constructor and Description |
---|
BBox(BBox other) |
BBox(double lon1,
double lat1,
double lon2,
double lat2) |
BBox(Envelope envelope) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
double |
getLat1() |
double |
getLat2() |
double |
getLon1() |
double |
getLon2() |
void |
set(double lon1,
double lat1,
double lon2,
double lat2) |
void |
setLat1(double lat1) |
void |
setLat2(double lat2) |
void |
setLon1(double lon1) |
void |
setLon2(double lon2) |
Envelope |
toEnvelope() |
void |
toEnvelope(Envelope envelope) |
String |
toString() |
public BBox(double lon1, double lat1, double lon2, double lat2)
lon1
- the first longitude.lat1
- the first latitude.lon2
- the second longitude.lat2
- the second latitude.public BBox(BBox other)
public BBox(Envelope envelope)
envelope
- the envelope to create from.public void set(double lon1, double lat1, double lon2, double lat2)
public double getLon1()
public double getLon2()
public double getLat1()
public double getLat2()
public void setLon1(double lon1)
lon1
- the first longitudepublic void setLon2(double lon2)
lon2
- the second longitudepublic void setLat1(double lat1)
lat1
- the first latitudepublic void setLat2(double lat2)
lat2
- the second latitudepublic Envelope toEnvelope()
public void toEnvelope(Envelope envelope)