Cartographic

new Cesium.Cartographic(longitude, latitude, height)

A position defined by longitude, latitude, and height.
参数名称 类型 默认值 描述信息
longitude number 0.0 可选 The longitude, in radians.
latitude number 0.0 可选 The latitude, in radians.
height number 0.0 可选 The height, in meters, above the ellipsoid.
参考:

成员(属性)

static constant Cesium.Cartographic.ZERO : Cartographic

An immutable Cartographic instance initialized to (0.0, 0.0, 0.0).
The height, in meters, above the ellipsoid.
默认值: 0.0
The latitude, in radians.
默认值: 0.0
The longitude, in radians.
默认值: 0.0

方法

static Cesium.Cartographic.clone(cartographic, result)Cartographic

Duplicates a Cartographic instance.
参数名称 类型 描述信息
cartographic Cartographic The cartographic to duplicate.
result Cartographic 可选 The object onto which to store the result.
返回值:
The modified result parameter or a new Cartographic instance if one was not provided. (Returns undefined if cartographic is undefined)

static Cesium.Cartographic.equals(left, right)boolean

Compares the provided cartographics componentwise and returns true if they are equal, false otherwise.
参数名称 类型 描述信息
left Cartographic 可选 The first cartographic.
right Cartographic 可选 The second cartographic.
返回值:
true if left and right are equal, false otherwise.

static Cesium.Cartographic.equalsEpsilon(left, right, epsilon)boolean

Compares the provided cartographics componentwise and returns true if they are within the provided epsilon, false otherwise.
参数名称 类型 默认值 描述信息
left Cartographic 可选 The first cartographic.
right Cartographic 可选 The second cartographic.
epsilon number 0 可选 The epsilon to use for equality testing.
返回值:
true if left and right are within the provided epsilon, false otherwise.

static Cesium.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.
参数名称 类型 默认值 描述信息
cartesian Cartesian3 The Cartesian position to convert to cartographic representation.
ellipsoid Ellipsoid Ellipsoid.WGS84 可选 The ellipsoid on which the position lies.
result Cartographic 可选 The object onto which to store the result.
返回值:
The modified result parameter, new Cartographic instance if none was provided, or undefined if the cartesian is at the center of the ellipsoid.

static Cesium.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.
参数名称 类型 默认值 描述信息
longitude number The longitude, in degrees.
latitude number The latitude, in degrees.
height number 0.0 可选 The height, in meters, above the ellipsoid.
result Cartographic 可选 The object onto which to store the result.
返回值:
The modified result parameter or a new Cartographic instance if one was not provided.

static Cesium.Cartographic.fromRadians(longitude, latitude, height, result)Cartographic

Creates a new Cartographic instance from longitude and latitude specified in radians.
参数名称 类型 默认值 描述信息
longitude number The longitude, in radians.
latitude number The latitude, in radians.
height number 0.0 可选 The height, in meters, above the ellipsoid.
result Cartographic 可选 The object onto which to store the result.
返回值:
The modified result parameter or a new Cartographic instance if one was not provided.

static Cesium.Cartographic.toCartesian(cartographic, ellipsoid, result)Cartesian3

Creates a new Cartesian3 instance from a Cartographic input. The values in the inputted object should be in radians.
参数名称 类型 默认值 描述信息
cartographic Cartographic Input to be converted into a Cartesian3 output.
ellipsoid Ellipsoid Ellipsoid.WGS84 可选 The ellipsoid on which the position lies.
result Cartesian3 可选 The object onto which to store the result.
返回值:
The position
Duplicates this instance.
参数名称 类型 描述信息
result Cartographic 可选 The object onto which to store the result.
返回值:
The modified result parameter or a new Cartographic instance if one was not provided.

equals(right)boolean

Compares the provided against this cartographic componentwise and returns true if they are equal, false otherwise.
参数名称 类型 描述信息
right Cartographic 可选 The second cartographic.
返回值:
true if left and right are equal, false otherwise.

equalsEpsilon(right, epsilon)boolean

Compares the provided against this cartographic componentwise and returns true if they are within the provided epsilon, false otherwise.
参数名称 类型 默认值 描述信息
right Cartographic 可选 The second cartographic.
epsilon number 0 可选 The epsilon to use for equality testing.
返回值:
true if left and right are within the provided epsilon, false otherwise.
Creates a string representing this cartographic in the format '(longitude, latitude, height)'.
返回值:
A string representing the provided cartographic in the format '(longitude, latitude, height)'.