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

Field Detail

ne

Object ne

sw

Object sw

Constructor Detail

BoundingBox

BoundingBox(<double> swlat, <double> swlon, <double> nelat, <double> nelon)

Method Detail

contains

boolean contains(<LatLonPoint> point)

getNorthEast

LatLonPoint getNorthEast()

getSouthWest

LatLonPoint getSouthWest()

isEmpty

boolean isEmpty()

toSpan

LatLonPoint toSpan()


Documentation generated by JSDoc on Mon May 21 15:24:17 2007