ClassLibraryWeiBao/QR二维码/MatrixPoint.cs

(完整代码) 737B

namespace Gma.QrCodeNet.Encoding
{
    public struct MatrixPoint
    {
        public int X { get; private set; }
        public int Y { get; private set; }

        internal MatrixPoint(int x, int y) 
            : this()
        {
            X = x;
            Y = y;
        }

        public MatrixPoint Offset(MatrixPoint offset)
        {
            return new MatrixPoint(offset.X + this.X, offset.Y + this.Y);
        }

        internal MatrixPoint Offset(int offsetX, int offsetY)
        {
            return Offset(new MatrixPoint(offsetX, offsetY));
        }

        public override string ToString()
        {
            return string.Format("Point({0};{1})", X, Y);
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。