Table of Contents

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

other GeoRectangle2

Returns

bool

IsEqualTo(GeoRectangle2, Tolerance)

Determines whether another rectangle covers the same region, within a tolerance.

public bool IsEqualTo(GeoRectangle2 other, Tolerance tolerance)

Parameters

other GeoRectangle2

The rectangle to compare with.

tolerance Tolerance

The 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.