Files
Just.Core/Core/Collections/MapPoint.cs
T
just e37e9b65c3
.NET Test / .NET tests (push) Successful in 1m58s
.NET Publish / publish (push) Successful in 58s
documentation update
2026-07-10 22:16:20 +04:00

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;
}