Beispiel #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);
 }
Beispiel #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));
 }
Beispiel #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);
 }
Beispiel #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);
 }