Ejemplo n.º 1
0
            public void Disconnect(PlanarEdgePair edgePair)
            {
                if (PrevEdgeInfo?.IsEqual(edgePair) ?? false)
                {
                    PrevEdgeInfo = null;
                }

                if (NextEdgeInfo?.IsEqual(edgePair) ?? false)
                {
                    NextEdgeInfo = null;
                }
            }
Ejemplo n.º 2
0
            public PlanarEdgePair GetConnectionInfo(PlanarEdge otherEdge)
            {
                if (PrevEdgeInfo?.ContainsEdge(otherEdge) ?? false)
                {
                    return(PrevEdgeInfo);
                }

                if (NextEdgeInfo?.ContainsEdge(otherEdge) ?? false)
                {
                    return(NextEdgeInfo);
                }

                return(null);
            }
Ejemplo n.º 3
0
            public bool IsConnectedTo(PlanarEdge other)
            {
                if (other == this)
                {
                    return(false);
                }

                if (NextEdgeInfo != null && NextEdgeInfo.ContainsEdge(other))
                {
                    return(true);
                }
                if (PrevEdgeInfo != null && PrevEdgeInfo.ContainsEdge(other))
                {
                    return(true);
                }

                return(false);
            }