public class BarycentricTriangle extends Object implements BarycentricPlanarShape
| Modifier and Type | Field and Description |
|---|---|
protected Vec4 |
p00 |
protected Vec4 |
p01 |
protected Vec4 |
p10 |
protected Vec4 |
q1 |
protected Vec4 |
q3 |
| Constructor and Description |
|---|
BarycentricTriangle(LatLon p00,
LatLon p10,
LatLon p01) |
BarycentricTriangle(Point p00,
Point p10,
Point p01) |
BarycentricTriangle(Vec4 p00,
Vec4 p10,
Vec4 p01) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Vec4 p) |
double[] |
getBarycentricCoords(LatLon location) |
double[] |
getBarycentricCoords(Vec4 p) |
double[] |
getBilinearCoords(double alpha,
double beta) |
LatLon |
getLocation(double[] w) |
Vec4 |
getP00() |
Vec4 |
getP01() |
Vec4 |
getP10() |
Vec4 |
getPoint(double[] w) |
protected Vec4 p00
protected Vec4 p01
protected Vec4 p10
protected Vec4 q1
protected Vec4 q3
public boolean contains(Vec4 p)
public double[] getBarycentricCoords(LatLon location)
public double[] getBarycentricCoords(Vec4 p)
getBarycentricCoords in interface BarycentricPlanarShapepublic double[] getBilinearCoords(double alpha,
double beta)
getBilinearCoords in interface BarycentricPlanarShapepublic LatLon getLocation(double[] w)
public Vec4 getP00()
public Vec4 getP01()
public Vec4 getP10()
public Vec4 getPoint(double[] w)
getPoint in interface BarycentricPlanarShape