Skip to main content

AreClose(Single, Single) Method

AreClose - Returns whether or not two floats are "close". That is, whether or not they are within epsilon of each other.

Definition

Namespace: Avalonia.Utilities
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static bool AreClose(
float value1,
float value2
)

Parameters

  Single
The first float to compare.
  Single
The second float to compare.

Return Value

Boolean

See Also

Reference

MathUtilities Class
AreClose Overload
Avalonia.Utilities Namespace