Пример #1
0
        bool FitsWith(Edge edge1, Edge edge2)
        {
            if (edge1.Type == EdgeType.Flat && edge2.Type == EdgeType.Flat)
            {
                return(true);
            }

            return(FittedEdges.Contains(new Tuple <Edge, Edge>(edge1, edge2)) ||
                   FittedEdges.Contains(new Tuple <Edge, Edge>(edge2, edge1)));
        }
Пример #2
0
        bool FitsWith(Edge edge1, Edge edge2)
        {
            if (edge1.Type == edge2.Type)
            {
                return(false);
            }

            return(FittedEdges.Contains(new Tuple <Edge, Edge>(edge1, edge2)) ||
                   FittedEdges.Contains(new Tuple <Edge, Edge>(edge2, edge1)));
        }