namespace Day10; public record GridPoint(long X, long Y) { public GridPoint Add(GridPoint other) { return new GridPoint(X + other.X, Y + other.Y); } public long Distance(GridPoint other) { return Math.Abs(X - other.X) + Math.Abs(Y - other.Y); } }