拆分 AlgorithmTypes: Vector3/DetectionSource 独立文件;SpecRepositories 拆分为独立文件;命名空间修正

This commit is contained in:
tian 2026-06-19 10:30:34 +08:00
parent 62b718fa1e
commit 2adacffe85
5 changed files with 27 additions and 26 deletions

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using CounterDrone.Core;
using CounterDrone.Core.Models;
@ -88,12 +88,6 @@ namespace CounterDrone.Core.Algorithms
}
}
/// <summary>三维向量(纯 C#,不依赖 UnityEngine</summary>
public struct Vector3
{
public float X, Y, Z;
public Vector3(float x, float y, float z) { X = x; Y = y; Z = z; }
}
/// <summary>粒子渲染参数</summary>
public class ParticleParams
@ -137,25 +131,6 @@ namespace CounterDrone.Core.Algorithms
public List<FireEvent> FireEvents { get; set; } = new();
}
/// <summary>探测源(独立探测设备或火力单元自带探测的统一表达)。
/// planner 基于探测源估算威胁的最早发现点,而非上帝视角的航路起点。</summary>
public class DetectionSource
{
public Vector3 Position { get; set; }
/// <summary>雷达探测距离 m不受能见度影响</summary>
public float RadarRange { get; set; }
/// <summary>光电探测距离 m受 Visibility 衰减)</summary>
public float EORange { get; set; }
/// <summary>红外探测距离 m不受能见度影响</summary>
public float IRRange { get; set; }
/// <summary>探测精度 m位置误差影响抛撒散布范围</summary>
public float Accuracy { get; set; }
public float MinElevation { get; set; } = float.MaxValue;
public float MaxElevation { get; set; } = float.MaxValue;
public float MinDetectAlt { get; set; } = float.MaxValue;
public float MaxDetectAlt { get; set; } = float.MaxValue;
public string? ModelId { get; set; }
}
/// <summary>规划方案</summary>
public class DefensePlan

View File

@ -0,0 +1,17 @@
namespace CounterDrone.Core.Algorithms
{
/// <summary>探测源(独立探测设备或火力单元自带探测能力)</summary>
public class DetectionSource
{
public Vector3 Position { get; set; }
public float RadarRange { get; set; }
public float EORange { get; set; }
public float IRRange { get; set; }
public float Accuracy { get; set; }
public float MinElevation { get; set; } = float.MaxValue;
public float MaxElevation { get; set; } = float.MaxValue;
public float MinDetectAlt { get; set; } = float.MaxValue;
public float MaxDetectAlt { get; set; } = float.MaxValue;
public string? ModelId { get; set; }
}
}

View File

@ -0,0 +1,9 @@
namespace CounterDrone.Core.Algorithms
{
/// <summary>三维向量(纯 C#,不依赖 UnityEngine</summary>
public struct Vector3
{
public float X, Y, Z;
public Vector3(float x, float y, float z) { X = x; Y = y; Z = z; }
}
}

Binary file not shown.