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