servicepoint-tanks/TanksServer/Models/FloatPosition.cs
Vinzenz Schroeter dd6b0fffc1 wall collision
2024-04-07 18:18:26 +02:00

9 lines
249 B
C#

using TanksServer.Services;
namespace TanksServer.Models;
internal readonly record struct FloatPosition(double X, double Y)
{
public PixelPosition ToPixelPosition() => new((int)X % MapService.PixelsPerRow, (int)Y % MapService.PixelsPerRow);
}