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));
 public TolerantPointEqualityComparer(Tolerance tolerance)
 {
     _tolerance = tolerance;
 }
Exemple #3
0
 public TolerantDoubleEqualityComparer(Tolerance tolerance)
 {
     _tolerance = tolerance.ToDouble();
 }