public override int GetHashCode() { int hashCode = -62375069; hashCode = hashCode * -1521134295 + ScaleX.GetHashCode(); hashCode = hashCode * -1521134295 + SkewX.GetHashCode(); hashCode = hashCode * -1521134295 + TransX.GetHashCode(); hashCode = hashCode * -1521134295 + SkewY.GetHashCode(); hashCode = hashCode * -1521134295 + ScaleY.GetHashCode(); hashCode = hashCode * -1521134295 + TransY.GetHashCode(); hashCode = hashCode * -1521134295 + Persp0.GetHashCode(); hashCode = hashCode * -1521134295 + Persp1.GetHashCode(); hashCode = hashCode * -1521134295 + Persp2.GetHashCode(); return(hashCode); }
public bool Equals(Matrix2D other) { if (other == null) { return(false); } return(ScaleX.Equals(other.ScaleX) && SkewX.Equals(other.SkewX) && TransX.Equals(other.TransX) && SkewY.Equals(other.SkewY) && ScaleY.Equals(other.ScaleY) && TransY.Equals(other.TransY) && Persp0.Equals(other.Persp0) && Persp1.Equals(other.Persp1) && Persp2.Equals(other.Persp2)); }