This commit is contained in:
TheXamlGuy
2024-04-26 23:05:36 +01:00
parent 9f90ef693d
commit bc55c4649b
206 changed files with 3106 additions and 3204 deletions
@@ -2,19 +2,19 @@ namespace Gma.QrCodeNet.Encoding;
public struct MatrixPoint
{
internal MatrixPoint(int x, int y)
: this()
{
X = x;
Y = y;
}
internal MatrixPoint(int x, int y)
: this()
{
X = x;
Y = y;
}
public int X { get; private set; }
public int Y { get; private set; }
public int X { get; private set; }
public int Y { get; private set; }
public MatrixPoint Offset(MatrixPoint offset) => new(offset.X + X, offset.Y + Y);
public MatrixPoint Offset(MatrixPoint offset) => new(offset.X + X, offset.Y + Y);
internal MatrixPoint Offset(int offsetX, int offsetY) => Offset(new MatrixPoint(offsetX, offsetY));
internal MatrixPoint Offset(int offsetX, int offsetY) => Offset(new MatrixPoint(offsetX, offsetY));
public override string ToString() => $"Point({X};{Y})";
}
public override string ToString() => $"Point({X};{Y})";
}