new Cartographic
A position defined by longitude, latitude, and height.
Parameters:
| Name | Type | Argument | Default | Description | 
|---|---|---|---|---|
longitude | 
            
            
            Number | 
                
                    <optional> | 
            
            
            
                0.0 | The longitude, in radians. | 
latitude | 
            
            
            Number | 
                
                    <optional> | 
            
            
            
                0.0 | The latitude, in radians. | 
height | 
            
            
            Number | 
                
                    <optional> | 
            
            
            
                0.0 | The height, in meters, above the ellipsoid. | 
See:
Source:
Members
- 
    
height :Number
 - 
    
    The height, in meters, above the ellipsoid.
- Default Value:
 - 0.0
 
 - 
    
latitude :Number
 - 
    
    The latitude, in radians.
- Default Value:
 - 0.0
 
 - 
    
longitude :Number
 - 
    
    The longitude, in radians.
- Default Value:
 - 0.0
 
 - 
    
<static> ZERO
 - 
    
    An immutable Cartographic instance initialized to (0.0, 0.0, 0.0).
 
Methods
- 
    
clone
 - 
    
    
    
Duplicates this instance.
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 one was not provided. - 
    
equals
 - 
    
    
    
Compares the provided against this cartographic componentwise and returns
trueif they are equal,falseotherwise.Parameters:
Name Type Argument Description rightCartographic <optional> 
The second cartographic. Returns:
Booleantrueif left and right are equal,falseotherwise. - 
    
equalsEpsilon
 - 
    
    
    
Compares the provided against this cartographic componentwise and returns
trueif they are within the provided epsilon,falseotherwise.Parameters:
Name Type Argument Description rightCartographic <optional> 
The second cartographic. epsilonNumber The epsilon to use for equality testing. Throws:
DeveloperError : epsilon is required and must be a number.Returns:
Booleantrueif left and right are within the provided epsilon,falseotherwise. - 
    
toString
 - 
    
    
    
Creates a string representing this cartographic in the format '(longitude, latitude, height)'.
Returns:
String A string representing the provided cartographic in the format '(longitude, latitude, height)'. - 
    
<static> clone
 - 
    
    
    
Duplicates a Cartographic instance.
Parameters:
Name Type Argument Description cartographicCartographic The cartographic to duplicate. resultCartographic <optional> 
The object onto which to store the result. Returns:
Cartographic The modified result parameter or a new Cartographic instance if one was not provided. (Returns undefined if cartographic is undefined) - 
    
<static> equals
 - 
    
    
    
Compares the provided cartographics componentwise and returns
trueif they are equal,falseotherwise.Parameters:
Name Type Argument Description leftCartographic <optional> 
The first cartographic. rightCartographic <optional> 
The second cartographic. Returns:
Booleantrueif left and right are equal,falseotherwise. - 
    
<static> equalsEpsilon
 - 
    
    
    
Compares the provided cartographics componentwise and returns
trueif they are within the provided epsilon,falseotherwise.Parameters:
Name Type Argument Description leftCartographic <optional> 
The first cartographic. rightCartographic <optional> 
The second cartographic. epsilonNumber The epsilon to use for equality testing. Throws:
DeveloperError : epsilon is required and must be a number.Returns:
Booleantrueif left and right are within the provided epsilon,falseotherwise. - 
    
<static> fromDegrees
 - 
    
    
    
Creates a new Cartographic instance from longitude and latitude specified in degrees. The values in the resulting object will be in radians.
Parameters:
Name Type Argument Default Description longitudeNumber <optional> 
0.0 The longitude, in degrees. latitudeNumber <optional> 
0.0 The latitude, in degrees. heightNumber <optional> 
0.0 The height, in meters, above the ellipsoid. resultCartographic <optional> 
The object onto which to store the result. Returns:
Cartographic The modified result parameter or a new Cartographic instance if one was not provided. - 
    
<static> toString
 - 
    
    
    
Creates a string representing the provided cartographic in the format '(longitude, latitude, height)'.
Parameters:
Name Type Description cartographicCartographic The cartographic to stringify. Throws:
DeveloperError : cartographic is required.Returns:
String A string representing the provided cartographic in the format '(longitude, latitude, height)'. 
