Files
TheXamlGuy bc55c4649b tidy
2024-04-26 23:05:36 +01:00

20 lines
494 B
C#

namespace Gma.QrCodeNet.Encoding;
public struct MatrixPoint
{
internal MatrixPoint(int x, int y)
: this()
{
X = x;
Y = y;
}
public int X { get; private set; }
public int Y { get; private set; }
public MatrixPoint Offset(MatrixPoint offset) => new(offset.X + X, offset.Y + Y);
internal MatrixPoint Offset(int offsetX, int offsetY) => Offset(new MatrixPoint(offsetX, offsetY));
public override string ToString() => $"Point({X};{Y})";
}