Add Tanks 1-5

This commit is contained in:
2026-07-13 10:49:07 +02:00
parent aece4e202e
commit 011f90233c
7 changed files with 226 additions and 37 deletions
+6 -1
View File
@@ -1,3 +1,8 @@
namespace PamhagenSysCtrl.Helpers.Pipeline {
public record struct Path(INode Start, IEnumerable<(IEdge Edge, INode Node)> Hops);
public record struct Path(
INode Start,
IEnumerable<(IEdge Edge, INode Node)> Hops)
{
public readonly double Length => Hops.Sum(h => Math.Abs(h.Edge.Start.CenterX - h.Edge.End.CenterX) + Math.Abs(h.Edge.Start.CenterY - h.Edge.End.CenterY));
}
}