Appearance
KBE3D / KBCore / Cesium / MapProjection
类: MapProjection
Defines how geodetic ellipsoid coordinates (Cartographic) project to a flat map like Cesium's 2D and Columbus View modes.
属性
ellipsoid
readonlyellipsoid:Ellipsoid
Gets the Ellipsoid.
方法
project()
project(
cartographic:Cartographic,result?:Cartesian3):Cartesian3
Projects Cartographic coordinates, in radians, to projection-specific map coordinates, in meters.
参数
cartographic
The coordinates to project.
result?
An instance into which to copy the result. If this parameter is undefined, a new instance is created and returned.
返回
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()
unproject(
cartesian:Cartesian3,result?:Cartographic):Cartographic
Unprojects projection-specific map Cartesian3 coordinates, in meters, to Cartographic coordinates, in radians.
参数
cartesian
The Cartesian position to unproject with height (z) in meters.
result?
An instance into which to copy the result. If this parameter is undefined, a new instance is created and returned.
返回
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.
构造函数
构造函数
new MapProjection():
MapProjection
返回
MapProjection
