/// <summary> /// Extend this line to its (nearest, by default) intersection with a profile. /// </summary> /// <param name="profile">The profile to intersect with</param> /// <param name="bothSides">Optional — if false, will only extend in the line's direction; if true will extend in both directions.</param> /// <param name="extendToFurthest">Optional — if true, will extend line as far as it will go, rather than stopping at the closest intersection.</param> public Line ExtendTo(Profile profile, bool bothSides = true, bool extendToFurthest = false) { return(ExtendTo(profile.Segments(), bothSides, extendToFurthest)); }
/// <summary> /// Extend this line to its nearest intersection with a profile. /// </summary> /// <param name="profile">The profile to intersect with</param> /// <param name="bothSides">Optional — if false, will only extend in the line's direction; if true will extend in both directions.</param> public Line ExtendTo(Profile profile, bool bothSides = true) { return(ExtendTo(profile.Segments(), bothSides)); }