ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Geometry Namespace / Segment Class / IsEqual Method / IsEqual(Segment,Double) Method
A segment to test for equality while considering the tolerance.
The tolerance to be used when determining if the segments are equal.

In This Topic
    IsEqual(Segment,Double) Method
    In This Topic
    Compares two segments for equality while considering the given tolerance.
    Syntax
    public bool IsEqual( 
       Segment other,
       double tolerance
    )
    Public Overloads Function IsEqual( _
       ByVal other As Segment, _
       ByVal tolerance As Double _
    ) As Boolean

    Parameters

    other
    A segment to test for equality while considering the tolerance.
    tolerance
    The tolerance to be used when determining if the segments are equal.

    Return Value

    True if the two segments are equal, false otherwise.
    Exceptions
    ExceptionDescription
    The input tolerance is < 0 or is NaN.
    Remarks
    The tolerance value is used to compare x, y, and other attributes. For example, if Abs(x1 - x2) <= tolerance, then x1 and x2 are considered to be equal. For topological equality, use relational operators instead of this function.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.8 or higher.
    See Also