new Extent
A two dimensional region specified as longitude and latitude coordinates.
Parameters:
| Name | Type | Argument | Default | Description | 
|---|---|---|---|---|
west | 
            
            
            Number | 
                
                    <optional> | 
            
            
            
                0.0 | The westernmost longitude, in radians, in the range [-Pi, Pi]. | 
south | 
            
            
            Number | 
                
                    <optional> | 
            
            
            
                0.0 | The southernmost latitude, in radians, in the range [-Pi/2, Pi/2]. | 
east | 
            
            
            Number | 
                
                    <optional> | 
            
            
            
                0.0 | The easternmost longitude, in radians, in the range [-Pi, Pi]. | 
north | 
            
            
            Number | 
                
                    <optional> | 
            
            
            
                0.0 | The northernmost latitude, in radians, in the range [-Pi/2, Pi/2]. | 
Source:
Members
- 
    
east :Number
 - 
    
    The easternmost longitude in radians in the range [-Pi, Pi].
- Default Value:
 - 0.0
 
 - 
    
north :Number
 - 
    
    The northernmost latitude in radians in the range [-Pi/2, Pi/2].
- Default Value:
 - 0.0
 
 - 
    
south :Number
 - 
    
    The southernmost latitude in radians in the range [-Pi/2, Pi/2].
- Default Value:
 - 0.0
 
 - 
    
west :Number
 - 
    
    The westernmost longitude in radians in the range [-Pi, Pi].
- Default Value:
 - 0.0
 
 - 
    
<static> MAX_VALUE :Extent
 - 
    
    The largest possible extent.
 
Methods
- 
    
clone
 - 
    
    
    
Duplicates this Extent.
Parameters:
Name Type Argument Description resultExtent <optional> 
The object onto which to store the result. Returns:
Extent The modified result parameter or a new Extent instance if none was provided. - 
    
contains
 - 
    
    
    
Returns true if the provided cartographic is on or inside the extent, false otherwise.
Parameters:
Name Type Description cartographicCartographic The cartographic to test. Returns:
Boolean true if the provided cartographic is inside the extent, false otherwise. - 
    
equals
 - 
    
    
    
Compares the provided Extent with this Extent componentwise and returns
trueif they are equal,falseotherwise.Parameters:
Name Type Argument Description otherExtent <optional> 
The Extent to compare. Returns:
Booleantrueif the Extents are equal,falseotherwise. - 
    
equalsEpsilon
 - 
    
    
    
Compares the provided Extent with this Extent componentwise and returns
trueif they are within the provided epsilon,falseotherwise.Parameters:
Name Type Argument Description otherExtent <optional> 
The Extent to compare. epsilonNumber The epsilon to use for equality testing. Returns:
Booleantrueif the Extents are within the provided epsilon,falseotherwise. - 
    
getCenter
 - 
    
    
    
Computes the center of this extent.
Parameters:
Name Type Argument Description resultCartographic <optional> 
The object onto which to store the result. Returns:
Cartographic The modified result parameter or a new Cartographic instance if none was provided. - 
    
getNortheast
 - 
    
    
    
Computes the northeast corner of this extent.
Parameters:
Name Type Argument Description resultCartographic <optional> 
The object onto which to store the result. Returns:
Cartographic The modified result parameter or a new Cartographic instance if none was provided. - 
    
getNorthwest
 - 
    
    
    
Computes the northwest corner of this extent.
Parameters:
Name Type Argument Description resultCartographic <optional> 
The object onto which to store the result. Returns:
Cartographic The modified result parameter or a new Cartographic instance if none was provided. - 
    
getSoutheast
 - 
    
    
    
Computes the southeast corner of this extent.
Parameters:
Name Type Argument Description resultCartographic <optional> 
The object onto which to store the result. Returns:
Cartographic The modified result parameter or a new Cartographic instance if none was provided. - 
    
getSouthwest
 - 
    
    
    
Computes the southwest corner of this extent.
Parameters:
Name Type Argument Description resultCartographic <optional> 
The object onto which to store the result. Returns:
Cartographic The modified result parameter or a new Cartographic instance if none was provided. - 
    
intersectWith
 - 
    
    
    
Computes the intersection of this extent with the provided extent.
Parameters:
Name Type Argument Description otherExtentThe extent to intersect with this extent. resultExtent <optional> 
The object onto which to store the result. Returns:
Extent The modified result parameter or a new Extent instance if none was provided. - 
    
isEmpty
 - 
    
    
    
Determines if the extent is empty, i.e., if
west >= eastorsouth >= north.Returns:
Boolean True if the extent is empty; otherwise, false. - 
    
<static> clone
 - 
    
    
    
Duplicates an Extent.
Parameters:
Name Type Argument Description extentExtent The extent to clone. resultExtent <optional> 
The object onto which to store the result, or undefined if a new instance should be created. Returns:
Extent The modified result parameter or a new Extent instance if none was provided. (Returns undefined if extent is undefined) - 
    
<static> equals
 - 
    
    
    
Compares the provided extents and returns
trueif they are equal,falseotherwise.Parameters:
Name Type Argument Description leftExtent <optional> 
The first Extent. rightExtent <optional> 
The second Extent. Returns:
Booleantrueif left and right are equal; otherwisefalse. - 
    
<static> fromCartographicArray
 - 
    
    
    
Creates the smallest possible Extent that encloses all positions in the provided array.
Parameters:
Name Type Argument Description cartographicsArray The list of Cartographic instances. resultExtent <optional> 
The object onto which to store the result, or undefined if a new instance should be created. Returns:
Extent The modified result parameter or a new Extent instance if none was provided. - 
    
<static> fromDegrees
 - 
    
    
    
Creates an extent given the boundary longitude and latitude in degrees.
Parameters:
Name Type Argument Default Description westNumber <optional> 
0.0 The westernmost longitude in degrees in the range [-180.0, 180.0]. southNumber <optional> 
0.0 The southernmost latitude in degrees in the range [-90.0, 90.0]. eastNumber <optional> 
0.0 The easternmost longitude in degrees in the range [-180.0, 180.0]. northNumber <optional> 
0.0 The northernmost latitude in degrees in the range [-90.0, 90.0]. resultExtent <optional> 
The object onto which to store the result, or undefined if a new instance should be created. Returns:
Extent The modified result parameter or a new Extent instance if none was provided.Example
var extent = Cesium.Extent.fromDegrees(0.0, 20.0, 10.0, 30.0);
 - 
    
<static> prototype.subsample
 - 
    
    
    
Samples this extent so that it includes a list of Cartesian points suitable for passing to BoundingSphere#fromPoints. Sampling is necessary to account for extents that cover the poles or cross the equator.
Parameters:
Name Type Argument Default Description ellipsoidEllipsoid <optional> 
Ellipsoid.WGS84 The ellipsoid to use. surfaceHeightNumber <optional> 
0.0 The height of the extent above the ellipsoid. resultArray <optional> 
The array of Cartesians onto which to store the result. Returns:
Array The modified result parameter or a new Array of Cartesians instances if none was provided. - 
    
<static> prototype.validate
 - 
    
    
    
Checks this Extent's properties and throws if they are not in valid ranges.
Throws:
 
