Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.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 System.Single, _
       ByVal b As System.Single, _
       ByVal epsilon As System.Single _
    ) As System.Boolean
    public static System.bool WithinEpsilon( 
       System.float a,
       System.float b,
       System.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