定义大地椭球坐标 ( Defines how geodetic ellipsoid coordinates (
Cartographic)投影到平面地图,如 Cesium 的 2D 和 Columbus View 模式。 ) project to a flat map like Cesium's 2D and Columbus View modes.
成员 Members
readonly ellipsoid : Ellipsoid
得到 Gets the
Ellipsoid.
方法 Methods
project(cartographic, result) → Cartesian3
Projects
Cartographic 坐标(以弧度为单位)到投影特定的地图坐标(以米为单位)。 coordinates, in radians, to projection-specific map coordinates, in meters.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
cartographic |
Cartographic | 要投影的坐标。 The coordinates to project. |
result |
Cartesian3 | 可选 optional 将结果复制到的实例。如果该参数未定义,则创建并返回一个新实例。 An instance into which to copy the result. If this parameter is undefined, a new instance is created and returned. |
返回: Returns:
投影坐标。如果结果参数不是未定义的,则将坐标复制到那里并返回该实例。否则,将创建并返回一个新实例。 The projected coordinates. If the result parameter is not undefined, the coordinates are copied there and that instance is returned. Otherwise, a new instance is created and returned.
unproject(cartesian, result) → Cartographic
取消投影特定于投影的地图 Unprojects projection-specific map
Cartesian3 坐标,以米为单位,到 coordinates, in meters, to Cartographic
坐标,以弧度为单位。 coordinates, in radians.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
cartesian |
Cartesian3 | 取消投影高度 (z)(以米为单位)的笛卡尔位置。 The Cartesian position to unproject with height (z) in meters. |
result |
Cartographic | 可选 optional 将结果复制到的实例。如果该参数未定义,则创建并返回一个新实例。 An instance into which to copy the result. If this parameter is undefined, a new instance is created and returned. |
返回: Returns:
未投影的坐标。如果结果参数不是未定义的,则将坐标复制到那里并返回该实例。否则,将创建并返回一个新实例。 The unprojected coordinates. If the result parameter is not undefined, the coordinates are copied there and that instance is returned. Otherwise, a new instance is created and returned.
