public static final class Tessellator.Triangle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) Tessellator.Node[] |
vertex |
Modifier | Constructor and Description |
---|---|
protected |
Triangle(Tessellator.Node a,
Tessellator.Node b,
Tessellator.Node c) |
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 |
getLat(int vertex)
get latitude value for the given vertex
|
double |
getLon(int vertex)
get longitude value for the given vertex
|
java.lang.String |
toString()
pretty print the triangle vertices
|
Tessellator.Node[] vertex
protected Triangle(Tessellator.Node a, Tessellator.Node b, Tessellator.Node c)
public int getEncodedX(int vertex)
public int getEncodedY(int vertex)
public double getLat(int vertex)
public double getLon(int vertex)
protected boolean containsPoint(double lat, double lon)
public java.lang.String toString()
toString
in class java.lang.Object