拆分 AlgorithmTypes: Vector3/DetectionSource 独立文件;SpecRepositories 拆分为独立文件;命名空间修正
This commit is contained in:
parent
62b718fa1e
commit
2adacffe85
@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using CounterDrone.Core;
|
using CounterDrone.Core;
|
||||||
using CounterDrone.Core.Models;
|
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>
|
/// <summary>粒子渲染参数</summary>
|
||||||
public class ParticleParams
|
public class ParticleParams
|
||||||
@ -137,25 +131,6 @@ namespace CounterDrone.Core.Algorithms
|
|||||||
public List<FireEvent> FireEvents { get; set; } = new();
|
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>
|
/// <summary>规划方案</summary>
|
||||||
public class DefensePlan
|
public class DefensePlan
|
||||||
|
|||||||
17
src/CounterDrone.Core/Algorithms/DetectionSource.cs
Normal file
17
src/CounterDrone.Core/Algorithms/DetectionSource.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
9
src/CounterDrone.Core/Algorithms/Vector3.cs
Normal file
9
src/CounterDrone.Core/Algorithms/Vector3.cs
Normal 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.
Binary file not shown.
Loading…
Reference in New Issue
Block a user