コード例 #1
0
            public PlanarEdgePair GetConnectionInfo(PlanarEdge otherEdge)
            {
                if (PrevEdgeInfo?.ContainsEdge(otherEdge) ?? false)
                {
                    return(PrevEdgeInfo);
                }

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

                return(null);
            }
コード例 #2
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);
            }