A position defined by longitude, latitude, and height.
| Name | Type | Default | Description |
|---|---|---|---|
longitude |
Number |
0.0
|
optional The longitude, in radians. |
latitude |
Number |
0.0
|
optional The latitude, in radians. |
height |
Number |
0.0
|
optional The height, in meters, above the ellipsoid. |
See:
Members
-
staticconstantCesium.Cartographic.ZERO : Cartographic
-
An immutable Cartographic instance initialized to (0.0, 0.0, 0.0).
-
The height, in meters, above the ellipsoid.
-
Default Value:
0.0 -
The latitude, in radians.
-
Default Value:
0.0 -
The longitude, in radians.
-
Default Value:
0.0
Methods
-
staticCesium.Cartographic.clone(cartographic, result) → Cartographic
-
Duplicates a Cartographic instance.
Name Type Description cartographicCartographic The cartographic to duplicate. resultCartographic optional The object onto which to store the result. Returns:
The modified result parameter or a new Cartographic instance if one was not provided. (Returns undefined if cartographic is undefined) -
Compares the provided cartographics componentwise and returns
trueif they are equal,falseotherwise.Name Type Description leftCartographic optional The first cartographic. rightCartographic optional The second cartographic. Returns:
trueif left and right are equal,falseotherwise. -
Compares the provided cartographics componentwise and returns
trueif they are within the provided epsilon,falseotherwise.Name Type Description leftCartographic optional The first cartographic. rightCartographic optional The second cartographic. epsilonNumber The epsilon to use for equality testing. Returns:
trueif left and right are within the provided epsilon,falseotherwise. -
staticCesium.Cartographic.fromCartesian(cartesian, ellipsoid, result) → Cartographic
-
Creates a new Cartographic instance from a Cartesian position. The values in the resulting object will be in radians.
Name Type Default Description cartesianCartesian3 The Cartesian position to convert to cartographic representation. ellipsoidEllipsoid Ellipsoid.WGS84optional The ellipsoid on which the position lies. resultCartographic optional The object onto which to store the result. Returns:
The modified result parameter, new Cartographic instance if none was provided, or undefined if the cartesian is at the center of the ellipsoid. -
staticCesium.Cartographic.fromDegrees(longitude, latitude, height, result) → Cartographic
-
Creates a new Cartographic instance from longitude and latitude specified in degrees. The values in the resulting object will be in radians.
Name Type Default Description longitudeNumber The longitude, in degrees. latitudeNumber The latitude, in degrees. heightNumber 0.0optional The height, in meters, above the ellipsoid. resultCartographic optional The object onto which to store the result. Returns:
The modified result parameter or a new Cartographic instance if one was not provided. -
staticCesium.Cartographic.fromRadians(longitude, latitude, height, result) → Cartographic
-
Creates a new Cartographic instance from longitude and latitude specified in radians.
Name Type Default Description longitudeNumber The longitude, in radians. latitudeNumber The latitude, in radians. heightNumber 0.0optional The height, in meters, above the ellipsoid. resultCartographic optional The object onto which to store the result. Returns:
The modified result parameter or a new Cartographic instance if one was not provided. -
clone(result) → Cartographic
-
Duplicates this instance.
Name Type Description resultCartographic optional The object onto which to store the result. Returns:
The modified result parameter or a new Cartographic instance if one was not provided. -
Compares the provided against this cartographic componentwise and returns
trueif they are equal,falseotherwise.Name Type Description rightCartographic optional The second cartographic. Returns:
trueif left and right are equal,falseotherwise. -
Compares the provided against this cartographic componentwise and returns
trueif they are within the provided epsilon,falseotherwise.Name Type Description rightCartographic optional The second cartographic. epsilonNumber The epsilon to use for equality testing. Returns:
trueif left and right are within the provided epsilon,falseotherwise. -
Creates a string representing this cartographic in the format '(longitude, latitude, height)'.
Returns:
A string representing the provided cartographic in the format '(longitude, latitude, height)'.
