コード例 #1
0
ファイル: LineSegment.cs プロジェクト: ORRNY66/helix-toolkit
 /// <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));
 }