Class Vertex


  • public final class Vertex
    extends java.lang.Object
    Represents a point in a three-dimensional space.
    • Constructor Summary

      Constructors 
      Constructor Description
      Vertex​(int x, int y, int z)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int getX()  
      int getY()  
      int getZ()  
      int hashCode()  
      Vertex rotate​(int orientation)
      Rotates the triangle by the given orientation.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Vertex

        public Vertex​(int x,
                      int y,
                      int z)
    • Method Detail

      • rotate

        public Vertex rotate​(int orientation)
        Rotates the triangle by the given orientation.
        Parameters:
        orientation - passed orientation
        Returns:
        new instance
      • getX

        public int getX()
      • getY

        public int getY()
      • getZ

        public int getZ()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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