Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace RobotNet10.Common.Models;
|
||||
|
||||
public record SpaceNode(double X, double Y)
|
||||
{
|
||||
public double DistanceTo(SpaceNode other)
|
||||
{
|
||||
double dx = X - other.X;
|
||||
double dy = Y - other.Y;
|
||||
return Math.Sqrt(dx * dx + dy * dy);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user