Exemplo n.º 1
0
 /// <summary>
 ///     Checks if the distance between every respective Point2d in both Triangle2d is less than or equal to the
 ///     Tolerance.EqualPoint value of the specified tolerance.
 /// </summary>
 /// <param name="t2D">The triangle2d to compare.</param>
 /// <param name="tol">The tolerance used in points comparisons.</param>
 /// <returns>true if the condition is met; otherwise, false.</returns>
 public bool IsEqualTo(Triangle2D t2D, Tolerance tol)
 {
     return(t2D[0].IsEqualTo(Pt0, tol) && t2D[1].IsEqualTo(Pt1, tol) && t2D[2].IsEqualTo(Pt2, tol));
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Checks if the distance between every respective Point2d in both Triangle2d is less than or equal to the
 ///     Tolerance.Global.EqualPoint value.
 /// </summary>
 /// <param name="t2D">The triangle2d to compare.</param>
 /// <returns>true if the condition is met; otherwise, false.</returns>
 public bool IsEqualTo(Triangle2D t2D)
 {
     return(IsEqualTo(t2D, Tolerance.Global));
 }