Class BoundingBox
Object
|
+--BoundingBox
- class
BoundingBox
Defined in mapstraction.js
|
Field Summary |
Object |
ne
|
Object |
sw
|
|
Constructor Summary |
BoundingBox(<double> swlat, <double> swlon, <double> nelat, <double> nelon)
BoundingBox creates a new bounding box object
|
|
Method Summary |
boolean
|
contains(<LatLonPoint> point)
contains finds whether a given point is within a bounding box
|
LatLonPoint
|
getNorthEast()
getNorthEast returns a LatLonPoint of the north-east point of the bounding box
|
LatLonPoint
|
getSouthWest()
getSouthWest returns a LatLonPoint of the south-west point of the bounding box
|
boolean
|
isEmpty()
isEmpty finds if this bounding box has zero area
|
LatLonPoint
|
toSpan()
toSpan returns a LatLonPoint with the lat and lon as the height and width of the bounding box
|
ne
Object ne
sw
Object sw
BoundingBox
BoundingBox(<double> swlat, <double> swlon, <double> nelat, <double> nelon)
BoundingBox creates a new bounding box object
Parameters:
swlat - the latitude of the south-west point
swlon - the longitude of the south-west point
nelat - the latitude of the north-east point
nelon - the longitude of the north-east point
contains
boolean contains(<LatLonPoint> point)
contains finds whether a given point is within a bounding box
Parameters:
point - the point to test with
Returns:
whether point is within this bounding box
getNorthEast
LatLonPoint getNorthEast()
getNorthEast returns a LatLonPoint of the north-east point of the bounding box
Returns:
the north-east point of the bounding box
getSouthWest
LatLonPoint getSouthWest()
getSouthWest returns a LatLonPoint of the south-west point of the bounding box
Returns:
the south-west point of the bounding box
isEmpty
boolean isEmpty()
isEmpty finds if this bounding box has zero area
Returns:
whether the north-east and south-west points of the bounding box are the same point
toSpan
LatLonPoint toSpan()
toSpan returns a LatLonPoint with the lat and lon as the height and width of the bounding box
Returns:
a LatLonPoint containing the height and width of this bounding box
Documentation generated by
JSDoc on Mon May 21 15:24:17 2007