Inheritance: ICloneable
Esempio n. 1
0
        public override bool Equals(object obj)
        {
            SvgTransform other = obj as SvgTransform;

            if (other == null)
            {
                return(false);
            }

            var thisMatrix  = this.Matrix.Elements;
            var otherMatrix = other.Matrix.Elements;

            for (int i = 0; i < 6; i++)
            {
                if (thisMatrix[i] != otherMatrix[i])
                {
                    return(false);
                }
            }

            return(true);
        }