예제 #1
0
파일: Line.cs 프로젝트: darcy77/Elements
 /// <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));
 }
예제 #2
0
파일: Line.cs 프로젝트: bangush/Elements
 /// <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));
 }