Method IsEqualTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
IsEqualTo(GeoRectangle2)
Determines whether another rectangle covers the same region, within the default tolerance.
public bool IsEqualTo(GeoRectangle2 other)
Parameters
otherGeoRectangle2
Returns
IsEqualTo(GeoRectangle2, Tolerance)
Determines whether another rectangle covers the same region, within a tolerance.
public bool IsEqualTo(GeoRectangle2 other, Tolerance tolerance)
Parameters
otherGeoRectangle2The rectangle to compare with.
toleranceToleranceThe tolerance.
Returns
- bool
true if the rectangles are the same within tolerance; otherwise, false.
Remarks
The comparison is of the shape rather than of the numbers: the same rectangle turned by a half turn, or described with its width and height swapped and turned a quarter, covers the same region and counts as equal. What is compared is the four corners, in any starting order.