Cesium模拟雷达追踪卫星

野见

关注

阅读 59

2022-03-31

效果展示

关键代码

//追踪
drawingLeiDa(ldLonLat, wxLonLat, satelliteId, deviceId) {
        let entity = this.viewer.entities.add({
          name: 'leidazhuizong',
          satelliteId: satelliteId,
          deviceId: deviceId,
          ldLonLat: ldLonLat,
          orientation: new Cesium.CallbackProperty(e => {
            let m = getModelMatrix(Cesium.Cartesian3.fromDegrees(ldLonLat.x, ldLonLat.y, ldLonLat.z), Cesium.Cartesian3.fromDegrees(wxLonLat.x, wxLonLat.y, wxLonLat.z));
            let hpr = getHeadingPitchRoll(m);
            hpr.pitch = hpr.pitch + 3.14 / 2 + 3.14;
            return Cesium.Transforms.headingPitchRollQuaternion(Cesium.Cart

精彩评论(0)

0 0 举报