public static final class Tessellator.Triangle extends Object
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
|
String |
toString()
pretty print the triangle vertices
|
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)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.