|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.data.osm.BBox
public class BBox
Field Summary | |
---|---|
private double |
xmax
|
private double |
xmin
|
private double |
ymax
|
private double |
ymin
|
Constructor Summary | |
---|---|
BBox(BBox copy)
|
|
BBox(Bounds bounds)
|
|
BBox(double a_x,
double a_y,
double b_x,
double b_y)
|
|
BBox(LatLon a,
LatLon b)
|
|
BBox(Node n)
|
|
BBox(Way w)
|
Method Summary | |
---|---|
void |
add(BBox box)
|
void |
add(double x,
double y)
Extends this bbox to include the point (x, y) |
void |
add(LatLon c)
|
void |
addPrimitive(OsmPrimitive primitive,
double extraSpace)
|
boolean |
bounds(BBox b)
Tests, weather the bbox b lies completely inside this bbox. |
boolean |
bounds(LatLon c)
Tests, weather the Point c lies within the bbox. |
boolean |
equals(java.lang.Object o)
|
LatLon |
getBottomRight()
|
LatLon |
getCenter()
|
LatLon |
getTopLeft()
|
int |
hashCode()
|
double |
height()
|
boolean |
intersects(BBox b)
Tests, weather two BBoxes intersect as an area. |
java.util.List<LatLon> |
points()
Returns a list of all 4 corners of the bbox rectangle. |
private void |
sanity()
|
java.lang.String |
toString()
|
java.lang.String |
toStringCSV(java.lang.String separator)
|
double |
width()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private double xmin
private double xmax
private double ymin
private double ymax
Constructor Detail |
---|
public BBox(Bounds bounds)
public BBox(LatLon a, LatLon b)
public BBox(BBox copy)
public BBox(double a_x, double a_y, double b_x, double b_y)
public BBox(Way w)
public BBox(Node n)
Method Detail |
---|
private void sanity()
public void add(LatLon c)
public void add(double x, double y)
public void add(BBox box)
public void addPrimitive(OsmPrimitive primitive, double extraSpace)
public double height()
public double width()
public boolean bounds(BBox b)
public boolean bounds(LatLon c)
public boolean intersects(BBox b)
public java.util.List<LatLon> points()
public LatLon getTopLeft()
public LatLon getBottomRight()
public LatLon getCenter()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringCSV(java.lang.String separator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |