Пример #1
0
        /// <summary>
        /// Returns an array of directed edges id's for a given array of routerpoints and forward flags.
        /// </summary>
        public static DirectedEdgeId[] ToDirectedEdgeIds(this RouterPoint[] points, bool[] forwards)
        {
            var directedIds = new DirectedEdgeId[points.Length];

            for (var i = 0; i < points.Length; i++)
            {
                directedIds[i] = new DirectedEdgeId(points[i].EdgeId, forwards[i]);
            }
            return(directedIds);
        }
Пример #2
0
 /// <summary>
 /// Moves the enumerator to the edge represented by the given directed edge id.
 /// </summary>
 public static void MoveToEdge(this Graph.EdgeEnumerator enumerator, DirectedEdgeId edgeId)
 {
     enumerator.MoveToEdge(edgeId.EdgeId);
 }