cesium笛卡尔坐标与经纬度坐标转化 经纬度转笛卡尔坐标 Cesium.Cartesian3.fromDegrees(lon,lat, height) 笛卡尔坐标转化经纬度坐标 let cartographic = Cesium.Cartographic.fromCartesian(position) let x = Cesium.Math.toDegrees(cartographic.longitude) let y = Cesium.Math.toDegrees(cartographic.latitude) let z =Cesium.Math.toDegrees(cartographic.height) 视角定位 viewer.camera.setView({ destination : Cesium.Cartesian3.fromDegrees(x, y, 100), // 设置位置 orientation: { heading : Cesium.Math.toRadians(20.0), // 方向 pitch : Cesium.Math.toRadians(-90.0),// 倾斜角度 roll : 0 } });