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)
- C#
- VB
- F#
public static bool IsOne(
float value
)
Public Shared Function IsOne (
value As Single
) As Boolean
static member IsOne :
value : float32 -> bool
Parameters
- Single
- The float to compare to 1.
Return Value
BooleanSee Also
Reference
MathUtilities Class
IsOne Overload
Avalonia.Utilities Namespace