using ActiveProtect.Utility; using System; namespace ActiveProtect.Models { /// /// 红外探测器类 /// public class InfraredDetector : Sensor { /// /// 探测范围 /// public double DetectionRange { get; set; } /// /// 视场角 /// public double FieldOfView { get; set; } /// /// 构造函数 /// /// 探测器的位置 /// 探测器的朝向 /// 探测范围 /// 视场角 public InfraredDetector(Vector3D position, Orientation orientation, double detectionRange, double fieldOfView) : base(position, orientation) { DetectionRange = detectionRange; FieldOfView = fieldOfView; } /// /// 更新红外探测器的状态 /// /// 自上次更新以来的时间间隔 public override void Update(double deltaTime) { // 实现红外探测器的更新逻辑 } /// /// 获取红外探测器的数据 /// /// 红外探测器采集的数据 public override SensorData GetSensorData() { // 返回红外探测器的数据 return new InfraredSensorData(); } } }