let r = new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(90),
Cesium.Math.toRadians(0),
Cesium.Math.toRadians(0));
let l = Cesium.Cartesian3.fromDegrees(117.224, 31.819, 128);
let sensorEntity = viewer.entities.add({
position: l,
orientation: Cesium.Transforms.headingPitchRollQuaternion(l, r),
rectangularSensor: new Cesium.RectangularSensorGraphics({
radius: 100000,
xHalfAngle: Cesium.Math.toRadians(45),
yHalfAngle: Cesium.Math.toRadians(45),
material: new Cesium.Color(1.0, 0.0, 1.0, 0.4),
lineColor: new Cesium.Color(1.0, 0.0, 1.0, 1.0),
showScanPlane: true,
scanPlaneColor: new Cesium.Color(1.0, 0.0, 1.0, 1.0),
scanPlaneMode: "vertical",
scanPlaneRate: 3,
showThroughEllipsoid: !1
})
})