position = viewer.camera.positionWC.clone(); up = viewer.camera.up.clone(); direction = viewer.camera.direction.clone();
flyHome() { let that = this; viewer.camera.flyTo({ destination: new Cesium.Cartesian3( that.homePos.position.x, that.homePos.position.y, that.homePos.position.z ), orientation: { direction: new Cesium.Cartesian3( that.homePos.direction.x, that.homePos.direction.y, that.homePos.direction.z ), up: new Cesium.Cartesian3( that.homePos.up.x, that.homePos.up.y, that.homePos.up.z ) } }); },