using static System.Collections.Specialized.BitVector32; namespace AdventOfCode.Core.Shared.Grid { public class Point(long X, long Y) { public long X { get; set; } = X; public long Y { get; set; } = Y; public string Value { get; set; } = string.Empty; public Point(long X, long Y, string value) : this(X, Y) => Value = value; public bool Intersect(Point other) { if (other == null) return false; return this.X == other.X && this.Y == other.Y; } public override string ToString() { return $"[{Y},{X}] {Value}"; } } }