/// <summary> /// Builds a route. /// </summary> public static Result <Route> TryBuild(RouterDb db, Profile profile, Func <ushort, Profiles.Factor> getFactor, RouterPoint source, RouterPoint target, EdgePath <float> path) { var pathList = new List <uint>(); path.AddToListAsVertices(pathList); return(FastRouteBuilder.TryBuild(db, profile, getFactor, source, target, pathList)); }
/// <summary> /// Builds a route. /// </summary> public static Route Build(RouterDb db, Profile profile, Func <ushort, Profiles.Factor> getFactor, RouterPoint source, RouterPoint target, List <uint> path) { return(FastRouteBuilder.TryBuild(db, profile, getFactor, source, target, path).Value); }
/// <summary> /// Builds a route. /// </summary> public static Result <Route> TryBuild(RouterDb db, Profile profile, Func <ushort, Profiles.Factor> getFactor, RouterPoint source, RouterPoint target, List <uint> path) { return(FastRouteBuilder.TryBuild(db, profile, getFactor, source, target, path, CancellationToken.None)); }
/// <summary> /// Builds a route. /// </summary> public static Route Build(RouterDb db, Profile profile, Func <ushort, Profiles.Factor> getFactor, RouterPoint source, RouterPoint target, EdgePath <float> path, CancellationToken cancellationToken) { return(FastRouteBuilder.TryBuild(db, profile, getFactor, source, target, path, cancellationToken).Value); }