Svg.Transforms.SvgTransform.Equals C# (CSharp) Method

Equals() public method

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