Initial commit

This commit is contained in:
2026-07-03 16:31:37 +07:00
commit 899c7c637d
1939 changed files with 641750 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
namespace RobotNet10.GlobalPathPlanner.Model;
public class GlobalNode
{
public Guid Id { get; set; }
public Guid MapId { get; set; }
public string? Name { get; set; }
public double X { get; set; }
public double Y { get; set; }
public Orientation Orientation { get; set; }
public override string ToString() => Name ?? typeof(GlobalNode).ToString();
// Tính khoảng cách giữa 2 điểm
public double DistanceTo(GlobalNode other)
{
double dx = X - other.X;
double dy = Y - other.Y;
return Math.Sqrt(dx * dx + dy * dy);
}
}