public class GLMapBBox
extends java.lang.Object
implements java.io.Serializable
GLMapBBox defines some rectangular area of map| Modifier and Type | Field and Description |
|---|---|
double |
origin_x
X coordinate of the origin of the bounding box
|
double |
origin_y
Y coordinate of the origin of the bounding box
|
double |
size_x
X size of the bounding box
|
double |
size_y
Y size of the bounding box
|
| Constructor and Description |
|---|
GLMapBBox()
Default constructor.
|
GLMapBBox(double origin_x,
double origin_y,
double size_x,
double size_y)
Initialize bbox with given data
|
GLMapBBox(GLMapBBox bbox)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBBox(GLMapBBox bbox)
Join this bbox with given
|
void |
addPoint(double x,
double y)
Add point to bbox
|
void |
addPoint(MapPoint pt)
Add point to bbox
|
MapPoint |
center()
Center of bbox
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
public double origin_x
public double origin_y
public double size_x
public double size_y
public GLMapBBox()
public GLMapBBox(double origin_x,
double origin_y,
double size_x,
double size_y)
origin_x - X coordinate of the origin of the bounding boxorigin_y - Y coordinate of the origin of the bounding boxsize_x - X size of the bounding boxsize_y - Y size of the bounding boxpublic GLMapBBox(GLMapBBox bbox)
bbox - bbox to copypublic MapPoint center()
public void addBBox(GLMapBBox bbox)
bbox - bbox to addpublic void addPoint(double x,
double y)
x - x coordinate of pointy - y coordinate of pointpublic void addPoint(MapPoint pt)
pt - point to addpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2017 GetYourMap. All Rights Reserved.