12 lines
395 B
C#
12 lines
395 B
C#
namespace Just.Core.Collections;
|
|
|
|
/// <summary>A value and its coordinates within a <see cref="IMap{T}"/>.</summary>
|
|
/// <typeparam name="T">The type of the map element.</typeparam>
|
|
public readonly struct MapPoint<T>(T value, int x, int y, IMap<T> map)
|
|
{
|
|
public readonly T Value = value;
|
|
public IMap<T> Map { get; } = map;
|
|
public int X { get; } = x;
|
|
public int Y { get; } = y;
|
|
}
|