Class ShapeField.DecodedTriangle

java.lang.Object
org.apache.lucene.document.ShapeField.DecodedTriangle
Enclosing class:
ShapeField

public static class ShapeField.DecodedTriangle extends Object
Represents a encoded triangle using ShapeField.decodeTriangle(byte[], DecodedTriangle).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    type of triangle
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    represent if edge ab belongs to original shape
    int
    x coordinate, vertex one
    int
    y coordinate, vertex one
    boolean
    represent if edge bc belongs to original shape
    int
    x coordinate, vertex two
    int
    y coordinate, vertex two
    boolean
    represent if edge ca belongs to original shape
    int
    x coordinate, vertex three
    int
    y coordinate, vertex three
    triangle type
  • Constructor Summary

    Constructors
    Constructor
    Description
    default xtor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    protected void
    setValues(int aX, int aY, boolean ab, int bX, int bY, boolean bc, int cX, int cY, boolean ca)
    Sets the values of the DecodedTriangle
    pretty print the triangle vertices

    Methods inherited from class java.lang.Object

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

    • 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
    • type

      triangle type
  • Constructor Details

    • DecodedTriangle

      public DecodedTriangle()
      default xtor
  • Method Details

    • setValues

      protected void setValues(int aX, int aY, boolean ab, int bX, int bY, boolean bc, int cX, int cY, boolean ca)
      Sets the values of the DecodedTriangle
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

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