Skip to main content

IsOne(Single) Method

IsOne - Returns whether or not the float is "close" to 1. Same as AreClose(float, 1), but this is faster.

Definition​

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

public static bool IsOne(
float value
)

Parameters​

  Single
The float to compare to 1.

Return Value​

Boolean

See Also​

Reference​

MathUtilities Class
IsOne Overload
Avalonia.Utilities Namespace