namespace Just.Core.Collections;
/// Read-only interface for a 2D grid with coordinate-based access and enumeration.
/// The type of elements in the map.
public interface IMap : IReadOnlyCollection>
{
int Width { get; }
int Height { get; }
ref readonly T this[int x, int y] { get; }
ref readonly T this[double x, double y] { get; }
MapPoint Get(int x, int y);
MapPoint Get(double x, double y);
T[,] ToArray();
}