Пример #1
0
 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);
     }
 }
Пример #2
0
        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());
        }
Пример #3
0
 public override string ToString()
 {
     return($"\n\tSegmentID: {SegmentID}\n\t\tBeginKnoop: {BeginKnoop.ToString()}\n\t\tEindKnoop: {EindKnoop.ToString()}\n\n\t\tVerteces: {VertecesToString()}");
 }
Пример #4
0
 public override int GetHashCode()
 {
     return(SegmentID.GetHashCode() ^ BeginKnoop.GetHashCode() ^ EindKnoop.GetHashCode() ^ Vertices.GetHashCode());
 }