Share via


VGConstants.FuzzEqual Method

Determines whether two floating point values are considered equal in a specified tolerance

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams.GraphObject
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public Shared Function FuzzEqual ( _
    first As Double, _
    second As Double, _
    fuzz As Double _
) As Boolean
public static bool FuzzEqual(
    double first,
    double second,
    double fuzz
)
public:
static bool FuzzEqual(
    double first, 
    double second, 
    double fuzz
)
static member FuzzEqual : 
        first:float * 
        second:float * 
        fuzz:float -> bool
public static function FuzzEqual(
    first : double, 
    second : double, 
    fuzz : double
) : boolean

Parameters

  • first
    Type: Double

    first value to compare

  • second
    Type: Double

    second value to compare

  • fuzz
    Type: Double

    tolerance - must be positive

Return Value

Type: Boolean
true if the first and second values differ by no more than the fuzz value

.NET Framework Security

See Also

Reference

VGConstants Class

Microsoft.VisualStudio.Modeling.Diagrams.GraphObject Namespace