Beispiel #1
0
 /// <summary>
 /// 比较两个线段是否相同
 /// </summary>
 /// <param name="other"></param>
 /// <param name="toterance">容差范围</param>
 /// <returns></returns>
 public bool IsAlmostEqualTo(Line2D other, double toterance)
 {
     return((Start.IsAlmostEqualTo(other.Start, toterance) && End.IsAlmostEqualTo(other.End, toterance)) || (Start.IsAlmostEqualTo(other.End, toterance) && End.IsAlmostEqualTo(other.Start, toterance)));
 }
Beispiel #2
0
 /// <summary>
 /// 比较两个线段是否相同
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool IsAlmostEqualTo(Line2D other)
 {
     return(IsAlmostEqualTo(other, Extension.SMALL_NUMBER));
 }