Svg.Transforms.SvgTransform.Equals C# (CSharp) 메소드

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool
    	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;
		}