Class SegmentNode

    • Field Detail

      • segmentIndex

        public final int segmentIndex
    • Method Detail

      • getCoordinate

        public Coordinate getCoordinate()
        Gets the Coordinate giving the location of this node.
        Returns:
        the coordinate of the node
      • isInterior

        public boolean isInterior()
      • isEndPoint

        public boolean isEndPoint​(int maxSegmentIndex)
      • compareTo

        public int compareTo​(Object obj)
        Specified by:
        compareTo in interface Comparable
        Returns:
        -1 this SegmentNode is located before the argument location; 0 this SegmentNode is at the argument location; 1 this SegmentNode is located after the argument location