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