1.屏幕坐標(biāo)(像素值)
2.笛卡爾平面坐標(biāo)? ? new Cesium.Cartesian2(x,y)
3.笛卡爾空間直角坐標(biāo)? new Cesium.Cartesian3(x,y,z)
4.地理坐標(biāo)(默認(rèn)為弧度值)new Cesium.Cartographic(longitude,latitude,height)

坐標(biāo)變換
1.獲取鼠標(biāo)單擊后在屏幕中的坐標(biāo)
var hander=new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);
hander.setInputAction(function(event){? ? ? //綁定鼠標(biāo)左點(diǎn)擊事件
var windowPosition=event.position;? ? ? ? ? ? //鼠標(biāo)點(diǎn)的windowPosition
},Cesium.ScreenSpaceEventType.LEFT_CLICK);
2.屏幕坐標(biāo)轉(zhuǎn)換為笛卡爾空間直角坐標(biāo)
//三維模式下
var ray=viewer.camera.getPickRay(windowPosition);
var cartesian=viewer.scene.globe.pick(ray,viewer.scene);
//二維模式下
var cartesian=scene.camera.pickEllipsoid(position,scene.globe.ellipsoid);
3.笛卡爾空間直角坐標(biāo)轉(zhuǎn)換為屏幕坐標(biāo)
var pick=Cesium.SceneTransforms.wgs84ToWindowCoordinates(viewer.scene,cartesian);
4.笛卡爾空間直角坐標(biāo)轉(zhuǎn)換為地理坐標(biāo)(弧度制)
var cartographic=Cesium.Cartographic.fromCartesian(cartesian)
5.地理坐標(biāo)(弧度制)轉(zhuǎn)換為笛卡爾空間直角坐標(biāo)
var position =Cesium.Cartesian3.fromRadians(lng,lat,height)
6.笛卡爾空間直角坐標(biāo)轉(zhuǎn)化為? 地理坐標(biāo)(經(jīng)緯度)
var cartographic=Cesium.Cartographic.fromCartesian(cartesian);
var lat=Cesium.Math.toDegrees(cartographic.latitude);
var lng =Cesium.Math.toDegrees(cartographic.longitude);
var height=cartographic.height;
(經(jīng)緯度度數(shù)與弧度互轉(zhuǎn))
Cesium.Math.toRadians(degrees);
Cesium.Math.toDegrees(radians);
7.地理坐標(biāo)(經(jīng)緯度)轉(zhuǎn)換為 笛卡爾空間直角坐標(biāo)
var position =Cesium.Cartesian3.fromDegrees(long,lat,height);