コード例 #1
0
ファイル: ConnectionSegment.cs プロジェクト: Pepega-corp/Un2
 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)
            {
            }
        }