Utils.

IsCloseTo(Vector, Vector) Method

Summary

Compares two Vector instances 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 Vector vector1, Vector vector2)

Parameters

Name Type Description
vector1 Vector The first Vector to compare
vector2 Vector The second Vector to compare

Return Value

Type Description
bool Whether or not the two Vector instances are equal