Class DMCBounds

Object
   |
   +--DMCBounds

class DMCBounds


DMCBounds is a class that represents a bounds.
Defined in APIJS.js


Field Summary
 DMCPoint getMax
          Returns the maximum point in the bounds
 DMCPoint getMin
          Returns the minimum point in the bounds
 string TYPE
          Geometry type of the object ("BOUNDS")
 Object xMax
          
 Object xMin
          
 Object yMax
          
 Object yMin
          
 
Constructor Summary
DMCBounds(<Points[]> points)
            Constructs a rectangle containing all the points
 
Method Summary
 bool contains( <DMCPoint> point)
           Returns true if the point is contained in the bounds and false otherwise
 bool containsBounds( <DMCBounds> bounds)
           Returns true if the bounds is contained in this bounds.
 bool equals( <DMCBounds> bounds)
           Returns true if the bounds are equal and false otherwise.
 void extend( <DMCPoint> point)
           Extends the bounds so that it includes the point passed in
 DMCPoint getCenter()
           Returns the center of the bounds
 DMCPoint getNorthEast()
           Returns the NorthEast corner point
 DMCPoint getNorthWest()
           Returns the NorthWest corner point
 DMCPoint[] getPoints()
           Returns an Array of DMCPoint which represents the bounds.
 DMCPoint getSouthEast()
           Returns the southEast corner point
 DMCPoint getSouthWest()
           Returns the SouthWest corner point
 DMCBounds intersection( <DMCBounds> bounds)
           Returns the box by which this box overlaps the other box.
 bool intersects( <DMCBounds> bounds)
           Returns true if the bounds intersects this bounds.
 bool isEmpty()
           Returns true if the bounds are valid and not empty and false otherwise
 bool isValidLat()
           Returns true if the the bounds contains valid latitude coordinates
 bool isValidLng()
           Returns true if the the bounds contains valid longitude coordinates
 void setBounds(<float> xMin, <float> yMin, <float> xMax, <float> yMax)
           Sets the bounds
 DMCPoint toSpan()
           Returns a DMCPoint which represents the size of this rectangle.
 string toString()
           Returns the WKT representation of the bounds

Field Detail

getMax

DMCPoint getMax

getMin

DMCPoint getMin

TYPE

string TYPE

xMax

Object xMax

xMin

Object xMin

yMax

Object yMax

yMin

Object yMin

Constructor Detail

DMCBounds

DMCBounds(<Points[]> points)

Method Detail

contains

bool contains( <DMCPoint> point)

containsBounds

bool containsBounds( <DMCBounds> bounds)

equals

bool equals( <DMCBounds> bounds)

extend

void extend( <DMCPoint> point)

getCenter

DMCPoint getCenter()

getNorthEast

DMCPoint getNorthEast()

getNorthWest

DMCPoint getNorthWest()

getPoints

DMCPoint[] getPoints()

getSouthEast

DMCPoint getSouthEast()

getSouthWest

DMCPoint getSouthWest()

intersection

DMCBounds intersection( <DMCBounds> bounds)

intersects

bool intersects( <DMCBounds> bounds)

isEmpty

bool isEmpty()

isValidLat

bool isValidLat()

isValidLng

bool isValidLng()

setBounds

void setBounds(<float> xMin, <float> yMin, <float> xMax, <float> yMax)

toSpan

DMCPoint toSpan()

toString

string toString()


Documentation generated by JSDoc on Mon Nov 24 17:54:35 2008