|
deCarta Android API Documentation - Copyright | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.decarta.android.location.BoundingBox
public class BoundingBox
The BoundingBox class marks a rectangular geography. The extents are marked
by two Positions located at the upper-right (maximum) and lower-left
(minimum) locations.
| Constructor Summary | |
|---|---|
BoundingBox()
|
|
BoundingBox(Position min,
Position max)
|
|
| Method Summary | |
|---|---|
boolean |
contains(Position pos)
Check if a given Position is within the BoundingBox |
Position |
getCenterPosition()
Retrieve the center position of the bounding box. |
Position |
getMaxPosition()
The upper-right corner of the bounding box |
Position |
getMinPosition()
The lower-left corner of the bounding box |
void |
setMaxPosition(Position maxPosition)
The upper-right corner of the bounding box |
void |
setMinPosition(Position minPosition)
The lower-left corner of the bounding box |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BoundingBox()
public BoundingBox(Position min,
Position max)
| Method Detail |
|---|
public Position getMaxPosition()
public void setMaxPosition(Position maxPosition)
public Position getMinPosition()
public void setMinPosition(Position minPosition)
public Position getCenterPosition()
public boolean contains(Position pos)
pos - required coordinate to test
public java.lang.String toString()
toString in class java.lang.Object
|
deCarta Android API Documentation - Copyright | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||