Utils.

IsCloseTo(Point, Point) Method

Summary

Compares two points 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 Point point1, Point point2)

Parameters

Name Type Description
point1 Point The first point to compare
point2 Point The second point to compare

Return Value

Type Description
bool Whether or not the two points are equal