Package org.apache.lucene.document
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 usingShapeField.decodeTriangle(byte[], DecodedTriangle).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShapeField.DecodedTriangle.TYPEtype of triangle
-
Field Summary
Fields Modifier and Type Field Description booleanabrepresent if edge ab belongs to original shapeintaXx coordinate, vertex oneintaYy coordinate, vertex onebooleanbcrepresent if edge bc belongs to original shapeintbXx coordinate, vertex twointbYy coordinate, vertex twobooleancarepresent if edge ca belongs to original shapeintcXx coordinate, vertex threeintcYy coordinate, vertex threeShapeField.DecodedTriangle.TYPEtypetriangle type
-
Constructor Summary
Constructors Constructor Description DecodedTriangle()default xtor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()protected voidsetValues(int aX, int aY, boolean ab, int bX, int bY, boolean bc, int cX, int cY, boolean ca)Sets the values of the DecodedTriangleStringtoString()pretty print the triangle vertices
-
-
-
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
-
type
public ShapeField.DecodedTriangle.TYPE type
triangle type
-
-