public override bool Equals(object obj) { if (obj is Segment) { Segment temp = obj as Segment; return(SegmentID == temp.SegmentID && BeginKnoop.Equals(temp.BeginKnoop) && EindKnoop.Equals(temp.EindKnoop) && Vertices.Equals(temp.Vertices)); } else { return(false); } }
public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append(Config.SegmentLabel); sb.Append(Config.Separator); sb.Append(SegmentId); sb.Append(Environment.NewLine); sb.Append(BeginKnoop.ToString()); sb.Append(EindKnoop.ToString()); foreach (Punt punt in Punten) { sb.Append(punt.ToString()); } return(sb.ToString()); }
public override string ToString() { return($"\n\tSegmentID: {SegmentID}\n\t\tBeginKnoop: {BeginKnoop.ToString()}\n\t\tEindKnoop: {EindKnoop.ToString()}\n\n\t\tVerteces: {VertecesToString()}"); }
public override int GetHashCode() { return(SegmentID.GetHashCode() ^ BeginKnoop.GetHashCode() ^ EindKnoop.GetHashCode() ^ Vertices.GetHashCode()); }