/// <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); }
/// <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)); }
/// <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); }
/// <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); }