|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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 |
DMCPoint getMax
DMCPoint getMin
string TYPE
Object xMax
Object xMin
Object yMax
Object yMin
| Constructor Detail |
DMCBounds(<Points[]> points)
points - Array of Points
| Method Detail |
bool contains( <DMCPoint> point)
point - A DMCPoint object
bool containsBounds( <DMCBounds> bounds)
bounds - A DMCBounds
bool equals( <DMCBounds> bounds)
bounds - A DMCBounds object
void extend( <DMCPoint> point)
point - Point to extend bounds
DMCPoint getCenter()
DMCPoint getNorthEast()
DMCPoint getNorthWest()
DMCPoint[] getPoints()
DMCPoint getSouthEast()
DMCPoint getSouthWest()
DMCBounds intersection( <DMCBounds> bounds)
bounds - A DMCBounds
bool intersects( <DMCBounds> bounds)
bounds - A DMCBounds
bool isEmpty()
bool isValidLat()
bool isValidLng()
void setBounds(<float> xMin, <float> yMin, <float> xMax, <float> yMax)
xMin - minimum x value
yMin - minimum y value
xMax - maximum x value
yMax - maximum y value
DMCPoint toSpan()
string toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||