示例#1
0
 public ConnectionSegment(Point point1, Point point2, ConnectionSegment previousSegment)
 {
     Point1          = point1;
     Point2          = point2;
     PreviousSegment = previousSegment;
     NextSegments    = new List <ConnectionSegment>();
 }
示例#2
0
        public Connection(List <Point> pathPoints, int connectionNumber)
        {
            ConnectionNumber = connectionNumber;

            if (pathPoints.Count % 2 != 0)
            {
                pathPoints.Add(new Point());
            }

            ConnectionSegment prevSegment = null;

            for (var i = 0; i < pathPoints.Count; i += 2)
            {
            }
        }