public static final class Tessellator.Triangle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) boolean[] |
edgeFromPolygon |
(package private) Tessellator.Node[] |
vertex |
Modifier | Constructor and Description |
---|---|
protected |
Triangle(Tessellator.Node a,
boolean isABfromPolygon,
Tessellator.Node b,
boolean isBCfromPolygon,
Tessellator.Node c,
boolean isCAfromPolygon) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
containsPoint(double lat,
double lon)
utility method to compute whether the point is in the triangle
|
int |
getEncodedX(int vertex)
get quantized x value for the given vertex
|
int |
getEncodedY(int vertex)
get quantized y value for the given vertex
|
double |
getX(int vertex)
get x value for the given vertex
|
double |
getY(int vertex)
get y value for the given vertex
|
boolean |
isEdgefromPolygon(int startVertex)
get if edge is shared with the polygon for the given edge
|
java.lang.String |
toString()
pretty print the triangle vertices
|
Tessellator.Node[] vertex
boolean[] edgeFromPolygon
protected Triangle(Tessellator.Node a, boolean isABfromPolygon, Tessellator.Node b, boolean isBCfromPolygon, Tessellator.Node c, boolean isCAfromPolygon)
public int getEncodedX(int vertex)
public int getEncodedY(int vertex)
public double getY(int vertex)
public double getX(int vertex)
public boolean isEdgefromPolygon(int startVertex)
protected boolean containsPoint(double lat, double lon)
public java.lang.String toString()
toString
in class java.lang.Object