Exemplo n.º 1
0
 /// <summary>
 /// Tries to calculate a tree starting at the given location.
 /// </summary>
 public static Tree CalculateTree(this RouterBase router, Profile profile, RouterPoint origin, float max)
 {
     return(router.TryCalculateTree(profile, origin, max).Value);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Tries to calculate a tree starting at the given location.
 /// </summary>
 public static Result <Tree> TryCalculateTree(this RouterBase router, Profile profile, RouterPoint origin, float max)
 {
     return(router.TryCalculateTree(profile, origin, max, CancellationToken.None));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Tries to calculate a tree starting at the given location.
 /// </summary>
 public static Tree CalculateTree(this RouterBase router, Profile profile, Coordinate origin, float max)
 {
     return(router.TryCalculateTree(profile, router.Resolve(profile, origin, 500), max).Value);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Tries to calculate a tree starting at the given location.
 /// </summary>
 public static Tree CalculateTree(this RouterBase router, Profile profile, RouterPoint origin, float max, CancellationToken cancellationToken)
 {
     return(router.TryCalculateTree(profile, origin, max, cancellationToken).Value);
 }