Class Vertex

  • All Implemented Interfaces:
    java.lang.Comparable<Vertex>

    public class Vertex
    extends java.lang.Object
    implements java.lang.Comparable<Vertex>
    Vertex reference, used to access the raw vertex in TriMesh.
    • Method Summary

      Modifier and Type Method Description
      int compareTo​(Vertex other)
      Compare the vertex with another vertex instance
      boolean equals​(java.lang.Object obj)
      Check if two objects are equal.
      int hashCode()
      Gets the hash code of the vertex
      java.lang.String toString()
      Gets the string representation of Vertex
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • toString

        public java.lang.String toString()
        Gets the string representation of Vertex
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(Vertex other)
        Compare the vertex with another vertex instance
        Specified by:
        compareTo in interface java.lang.Comparable<Vertex>
        Parameters:
        other -
      • equals

        public boolean equals​(java.lang.Object obj)
        Check if two objects are equal.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
      • hashCode

        public int hashCode()
        Gets the hash code of the vertex
        Overrides:
        hashCode in class java.lang.Object