public class BarycentricTriangle extends java.lang.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(java.awt.Point p00,
java.awt.Point p10,
java.awt.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 BarycentricTriangle(java.awt.Point p00, java.awt.Point p10, java.awt.Point p01)
public boolean contains(Vec4 p)
public double[] getBarycentricCoords(LatLon location)
public double[] getBarycentricCoords(Vec4 p)
getBarycentricCoords
in interface BarycentricPlanarShape
public double[] getBilinearCoords(double alpha, double beta)
getBilinearCoords
in interface BarycentricPlanarShape
public LatLon getLocation(double[] w)
public Vec4 getP00()
public Vec4 getP01()
public Vec4 getP10()
public Vec4 getPoint(double[] w)
getPoint
in interface BarycentricPlanarShape