new BoundingRectangle(x, y, width, height)
        A bounding rectangle given by a corner, width and height.
    
    
    
    
    
    
        
| Name | Type | Default | Description | 
|---|---|---|---|
| x | Number | 0.0 | optional The x coordinate of the rectangle. | 
| y | Number | 0.0 | optional The y coordinate of the rectangle. | 
| width | Number | 0.0 | optional The width of the rectangle. | 
| height | Number | 0.0 | optional The height of the rectangle. | 
See:
Members
- 
    height :Number
- 
    
    The height of the rectangle.- 
    
    
    
    
    
    
    
    
    
    Default Value:
    
 0.0
- 
    width :Number
- 
    
    The width of the rectangle.- 
    
    
    
    
    
    
    
    
    
    Default Value:
    
 0.0
- 
    x :Number
- 
    
    The x coordinate of the rectangle.- 
    
    
    
    
    
    
    
    
    
    Default Value:
    
 0.0
- 
    y :Number
- 
    
    The y coordinate of the rectangle.- 
    
    
    
    
    
    
    
    
    
    Default Value:
    
 0.0
Methods
- 
    staticBoundingRectangle.clone(rectangle, result) → BoundingRectangle
- 
    
    Duplicates a BoundingRectangle instance.Name Type Description rectangleBoundingRectangle The bounding rectangle to duplicate. resultBoundingRectangle optional The object onto which to store the result. Returns:The modified result parameter or a new BoundingRectangle instance if one was not provided. (Returns undefined if rectangle is undefined)
- 
    staticBoundingRectangle.equals(left, right) → Boolean
- 
    
    Compares the provided BoundingRectangles componentwise and returnstrueif they are equal,falseotherwise.Name Type Description leftBoundingRectangle optional The first BoundingRectangle. rightBoundingRectangle optional The second BoundingRectangle. Returns:trueif left and right are equal,falseotherwise.
- 
    staticBoundingRectangle.expand(rectangle, point, result) → BoundingRectangle
- 
    
    Computes a bounding rectangle by enlarging the provided rectangle until it contains the provided point.Name Type Description rectangleBoundingRectangle A rectangle to expand. pointCartesian2 A point to enclose in a bounding rectangle. resultBoundingRectangle optional The object onto which to store the result. Returns:The modified result parameter or a new BoundingRectangle instance if one was not provided.
- 
    staticBoundingRectangle.fromPoints(positions, result) → BoundingRectangle
- 
    
    Computes a bounding rectangle enclosing the list of 2D points. The rectangle is oriented with the corner at the bottom left.Name Type Description positionsArray.<Cartesian2> List of points that the bounding rectangle will enclose. Each point must have xandyproperties.resultBoundingRectangle optional The object onto which to store the result. Returns:The modified result parameter or a new BoundingRectangle instance if one was not provided.
- 
    staticBoundingRectangle.fromRectangle(rectangle, projection, result) → BoundingRectangle
- 
    
    Computes a bounding rectangle from an rectangle.Name Type Default Description rectangleRectangle The valid rectangle used to create a bounding rectangle. projectionObject GeographicProjectionoptional The projection used to project the rectangle into 2D. resultBoundingRectangle optional The object onto which to store the result. Returns:The modified result parameter or a new BoundingRectangle instance if one was not provided.
- 
    staticBoundingRectangle.intersect(left, right) → Intersect
- 
    
    Determines if two rectangles intersect.Name Type Description leftBoundingRectangle A rectangle to check for intersection. rightBoundingRectangle The other rectangle to check for intersection. Returns:Intersect.INTESECTINGif the rectangles intersect,Intersect.OUTSIDEotherwise.
- 
    staticBoundingRectangle.union(left, right, result) → BoundingRectangle
- 
    
    Computes a bounding rectangle that is the union of the left and right bounding rectangles.Name Type Description leftBoundingRectangle A rectangle to enclose in bounding rectangle. rightBoundingRectangle A rectangle to enclose in a bounding rectangle. resultBoundingRectangle optional The object onto which to store the result. Returns:The modified result parameter or a new BoundingRectangle instance if one was not provided.
- 
    clone(result) → BoundingRectangle
- 
    
    Duplicates this BoundingRectangle instance.Name Type Description resultBoundingRectangle optional The object onto which to store the result. Returns:The modified result parameter or a new BoundingRectangle instance if one was not provided.
- 
    equals(right) → Boolean
- 
    
    Compares this BoundingRectangle against the provided BoundingRectangle componentwise and returnstrueif they are equal,falseotherwise.Name Type Description rightBoundingRectangle optional The right hand side BoundingRectangle. Returns:trueif they are equal,falseotherwise.
- 
    intersect(right) → Intersect
- 
    
    Determines if this rectangle intersects with another.Name Type Description rightBoundingRectangle A rectangle to check for intersection. Returns:Intersect.INTESECTINGif the rectangles intersect,Intersect.OUTSIDEotherwise.
