Package org.apache.lucene.geo
Class XTessellator.Triangle
- java.lang.Object
-
- org.apache.lucene.geo.XTessellator.Triangle
-
- Enclosing class:
- XTessellator
public static final class XTessellator.Triangle extends java.lang.Object
Triangle in the tessellated mesh
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Triangle(XTessellator.Node a, XTessellator.Node b, XTessellator.Node c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
containsPoint(double lat, double lon)
utility method to compute whether the point is in the triangleint
getEncodedX(int vertex)
get quantized x value for the given vertexint
getEncodedY(int vertex)
get quantized y value for the given vertexdouble
getLat(int vertex)
get latitude value for the given vertexdouble
getLon(int vertex)
get longitude value for the given vertexjava.lang.String
toString()
pretty print the triangle vertices
-
-
-
Constructor Detail
-
Triangle
protected Triangle(XTessellator.Node a, XTessellator.Node b, XTessellator.Node c)
-
-
Method Detail
-
getEncodedX
public int getEncodedX(int vertex)
get quantized x value for the given vertex
-
getEncodedY
public int getEncodedY(int vertex)
get quantized y value for the given vertex
-
getLat
public double getLat(int vertex)
get latitude value for the given vertex
-
getLon
public double getLon(int vertex)
get longitude value for the given vertex
-
containsPoint
protected boolean containsPoint(double lat, double lon)
utility method to compute whether the point is in the triangle
-
toString
public java.lang.String toString()
pretty print the triangle vertices- Overrides:
toString
in classjava.lang.Object
-
-