예제 #1
0
 public bool Equals(Polygon other, Tolerance tolerance) => other != null &&
 BoundingBox.Equals(other.BoundingBox, tolerance) &&
 NumberOfParts.Equals(other.NumberOfParts) &&
 NumberOfPoints.Equals(other.NumberOfPoints) &&
 Parts.SequenceEqual(other.Parts) &&
 Points.SequenceEqual(other.Points, new TolerantPointEqualityComparer(tolerance));
예제 #2
0
 public TolerantPointEqualityComparer(Tolerance tolerance)
 {
     _tolerance = tolerance;
 }
예제 #3
0
 public TolerantDoubleEqualityComparer(Tolerance tolerance)
 {
     _tolerance = tolerance.ToDouble();
 }