first commit

This commit is contained in:
2023-12-14 21:48:48 +04:00
commit ef5d53a67f
22 changed files with 1387 additions and 0 deletions

12
Core/Collections/IMap.cs Normal file
View File

@@ -0,0 +1,12 @@
namespace Just.Core.Collections;
public interface IMap<T> : IReadOnlyCollection<MapPoint<T>>
{
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<T> Get(int x, int y);
MapPoint<T> Get(double x, double y);
T[,] ToArray();
}