Package org.apache.lucene.document
Class ShapeField.DecodedTriangle
java.lang.Object
org.apache.lucene.document.ShapeField.DecodedTriangle
- Enclosing class:
ShapeField
Represents a encoded triangle using
ShapeField.decodeTriangle(byte[], DecodedTriangle).-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanrepresent if edge ab belongs to original shapeintx coordinate, vertex oneinty coordinate, vertex onebooleanrepresent if edge bc belongs to original shapeintx coordinate, vertex twointy coordinate, vertex twobooleanrepresent if edge ca belongs to original shapeintx coordinate, vertex threeinty coordinate, vertex threetriangle type -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
aX
public int aXx coordinate, vertex one -
aY
public int aYy coordinate, vertex one -
bX
public int bXx coordinate, vertex two -
bY
public int bYy coordinate, vertex two -
cX
public int cXx coordinate, vertex three -
cY
public int cYy coordinate, vertex three -
ab
public boolean abrepresent if edge ab belongs to original shape -
bc
public boolean bcrepresent if edge bc belongs to original shape -
ca
public boolean carepresent 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() -
equals
-
toString
pretty print the triangle vertices
-