Search Results for

    Show / Hide Table of Contents

    Class SegmentPointComparator

    Implements a robust method of comparing the relative position of two points along the same segment. The coordinates are assumed to lie "near" the segment. This means that this algorithm will only return correct results if the input coordinates have the same precision and correspond to rounded values of exact coordinates lying on the segment.

    Inheritance
    object
    SegmentPointComparator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Noding
    Assembly: NetTopologySuite.dll
    Syntax
    public class SegmentPointComparator

    Methods

    | Edit this page View Source

    Compare(Octants, Coordinate, Coordinate)

    Compares two Coordinates for their relative position along a segment lying in the specified Octant.

    Declaration
    public static int Compare(Octants octant, Coordinate p0, Coordinate p1)
    Parameters
    Type Name Description
    Octants octant
    Coordinate p0
    Coordinate p1
    Returns
    Type Description
    int

    -1 if node0 occurs first, or
    0 if the two nodes are equal, or
    1 if node1 occurs first.

    | Edit this page View Source

    RelativeSign(double, double)

    Declaration
    public static int RelativeSign(double x0, double x1)
    Parameters
    Type Name Description
    double x0
    double x1
    Returns
    Type Description
    int
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX