Summary
Compares two rectangles for fuzzy equality. This function
helps compensate for the fact that double values can
acquire error when operated upon
- Namespace
- MahApps
.Metro .Controls - Containing Type
- Utils
Syntax
public static bool IsCloseTo(this Rect rect1, Rect rect2)
Parameters
Name | Type | Description |
---|---|---|
rect1 | Rect | The first rectangle to compare |
rect2 | Rect | The second rectangle to compare |
Return Value
Type | Description |
---|---|
bool | Whether or not the two rectangles are equal |