Search Results for

    Show / Hide Table of Contents

    Class PerOrdinateEqualityComparer

    A class that can be used to test coordinates for equality.

    This class test for each ordinate if the distance is less than a tolerance value.
    Inheritance
    object
    EqualityComparer<Coordinate>
    CoordinateEqualityComparer
    PerOrdinateEqualityComparer
    Implements
    IEqualityComparer<Coordinate>
    IEqualityComparer
    Inherited Members
    CoordinateEqualityComparer.Equals(Coordinate, Coordinate)
    CoordinateEqualityComparer.Equals(Coordinate, Coordinate, double)
    CoordinateEqualityComparer.GetHashCode(Coordinate)
    EqualityComparer<Coordinate>.Default
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Geometries
    Assembly: NetTopologySuite.dll
    Syntax
    public sealed class PerOrdinateEqualityComparer : CoordinateEqualityComparer, IEqualityComparer<Coordinate>, IEqualityComparer

    Methods

    | Edit this page View Source

    AreEqual(Coordinate, Coordinate, double)

    Method to test 2 Coordinates for equality, allowing a tolerance.

    Declaration
    protected override bool AreEqual(Coordinate a, Coordinate b, double tolerance)
    Parameters
    Type Name Description
    Coordinate a

    The 1st Coordinate

    Coordinate b

    The 2nd Coordinate

    double tolerance

    A tolerance value

    Returns
    Type Description
    bool

    true if a and b can be considered equal.

    Overrides
    CoordinateEqualityComparer.AreEqual(Coordinate, Coordinate, double)

    Implements

    IEqualityComparer<T>
    IEqualityComparer
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX