Пример #1
0
            internal void SetLinks(int edge, Edge newEdge)
            {
                SafetyChecks.CheckIndexAndThrow(edge, 3);
                switch (edge)
                {
                case 0:
                    Edge0 = newEdge;
                    break;

                case 1:
                    Edge1 = newEdge;
                    break;

                case 2:
                    Edge2 = newEdge;
                    break;
                }
            }
Пример #2
0
            internal Edge Links(int edge)
            {
                SafetyChecks.CheckIndexAndThrow(edge, 3);
                switch (edge)
                {
                case 0:
                    return(Edge0);

                case 1:
                    return(Edge1);

                case 2:
                    return(Edge2);

                default:
                    return(default);
                }
            }