ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX Namespace / DXUtil Class / WithinEpsilon Method
The left value to compare.
The right value to compare.
Epsilon value

In This Topic
    WithinEpsilon Method
    In This Topic
    Checks if a - b are almost equals within a float epsilon.
    Syntax
    'Declaration
     
    Public Shared Function WithinEpsilon( _
       ByVal a As Single, _
       ByVal b As Single, _
       ByVal epsilon As Single _
    ) As Boolean
    public static bool WithinEpsilon( 
       float a,
       float b,
       float epsilon
    )

    Parameters

    a
    The left value to compare.
    b
    The right value to compare.
    epsilon
    Epsilon value

    Return Value

    true if a almost equal to b within a float epsilon, false otherwise
    See Also