Class ShapeField.DecodedTriangle

    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean ab
      represent if edge ab belongs to original shape
      int aX
      x coordinate, vertex one
      int aY
      y coordinate, vertex one
      boolean bc
      represent if edge bc belongs to original shape
      int bX
      x coordinate, vertex two
      int bY
      y coordinate, vertex two
      boolean ca
      represent if edge ca belongs to original shape
      int cX
      x coordinate, vertex three
      int cY
      y coordinate, vertex three
      ShapeField.DecodedTriangle.TYPE type
      triangle type
    • Constructor Summary

      Constructors 
      Constructor Description
      DecodedTriangle()
      default xtor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      private void setValues​(int aX, int aY, boolean ab, int bX, int bY, boolean bc, int cX, int cY, boolean ca)  
      java.lang.String toString()
      pretty print the triangle vertices
      • Methods inherited from class java.lang.Object

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

      • aX

        public int aX
        x coordinate, vertex one
      • aY

        public int aY
        y coordinate, vertex one
      • bX

        public int bX
        x coordinate, vertex two
      • bY

        public int bY
        y coordinate, vertex two
      • cX

        public int cX
        x coordinate, vertex three
      • cY

        public int cY
        y coordinate, vertex three
      • ab

        public boolean ab
        represent if edge ab belongs to original shape
      • bc

        public boolean bc
        represent if edge bc belongs to original shape
      • ca

        public boolean ca
        represent if edge ca belongs to original shape
    • Constructor Detail

      • DecodedTriangle

        public DecodedTriangle()
        default xtor
    • Method Detail

      • setValues

        private void setValues​(int aX,
                               int aY,
                               boolean ab,
                               int bX,
                               int bY,
                               boolean bc,
                               int cX,
                               int cY,
                               boolean ca)
      • hashCode

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

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

        public java.lang.String toString()
        pretty print the triangle vertices
        Overrides:
        toString in class java.lang.Object