예제 #1
0
 /// <summary>
 /// Indicates whether the specified line segment intersects with the current line segment.
 /// </summary>
 /// <param name="other">The line segment to check.</param>
 /// <returns>
 /// <c>true</c> if the specified line segment intersects with the current line segment; otherwise <c>false</c>.
 /// </returns>
 public bool IntersectsWith(LineSegment other)
 {
     return AreLineSegmentsIntersecting(this.p1, this.p2, other.p1, other.p2);
 }
예제 #2
0
 /// <summary>
 /// Indicates whether the specified line segment intersects with the current line segment.
 /// </summary>
 /// <param name="other">The line segment to check.</param>
 /// <returns>
 /// <c>true</c> if the specified line segment intersects with the current line segment; otherwise <c>false</c>.
 /// </returns>
 public bool IntersectsWith(LineSegment other)
 {
     return(AreLineSegmentsIntersecting(this.p1, this.p2, other.p1, other.p2));
 }