public override bool Equals(object obj) { if (obj is LineEndOffsets) { LineEndOffsets o = (LineEndOffsets)obj; return offI.Equals(o.offI) && offJ.Equals(o.offJ) && factor.Equals(o.factor); } return false; }