Exemplo n.º 1
0
        /// <summary>
        /// Returns the location on the given edge using the given offset.
        /// </summary>
        /// <param name="routerDb">The router db.</param>
        /// <param name="snapPoint">The snap point.</param>
        /// <returns>The location on the network.</returns>
        public static Coordinate LocationOnNetwork(this RouterDb routerDb, SnapPoint snapPoint)
        {
            var enumerator = routerDb.GetEdgeEnumerator();

            enumerator.MoveToEdge(snapPoint.EdgeId);

            return(enumerator.LocationOnEdge(snapPoint.Offset));
        }