Module org.dyn4j

Class MonotoneVertex<E>

  • Type Parameters:
    E - the vertex data type

    final class MonotoneVertex<E>
    extends java.lang.Object
    Represents a vertex of a monotone polygon.
    Since:
    2.2.0
    Version:
    3.2.0
    Author:
    William Bittle
    • Constructor Summary

      Constructors 
      Constructor Description
      MonotoneVertex​(E data)
      Minimal constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAdjacent​(MonotoneVertex<E> vertex)
      Returns true if the given vertex is adjacent to this vertex.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MonotoneVertex

        public MonotoneVertex​(E data)
        Minimal constructor.
        Parameters:
        data - the vertex data
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isAdjacent

        public boolean isAdjacent​(MonotoneVertex<E> vertex)
        Returns true if the given vertex is adjacent to this vertex.
        Parameters:
        vertex - the vertex to test
        Returns:
        boolean