|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.geom.BarycentricTriangle
gov.nasa.worldwind.geom.BarycentricQuadrilateral
public class BarycentricQuadrilateral
See http://www.cs.kuleuven.be/~ares/Publications/LagaeDutre2005AnEfficientRayQuadrilateralIntersectionTest/paper.pdf for a description of the calculations used to compute barycentric and bilinear coordinates.
| Field Summary | |
|---|---|
protected Vec4 |
p11
|
| Fields inherited from class gov.nasa.worldwind.geom.BarycentricTriangle |
|---|
p00, p01, p10, q1, q3 |
| Constructor Summary | |
|---|---|
BarycentricQuadrilateral(LatLon p00,
LatLon p10,
LatLon p11,
LatLon p01)
|
|
BarycentricQuadrilateral(Point p00,
Point p10,
Point p11,
Point p01)
|
|
BarycentricQuadrilateral(Vec4 p00,
Vec4 p10,
Vec4 p11,
Vec4 p01)
|
|
| Method Summary | |
|---|---|
boolean |
contains(Vec4 p)
|
double[] |
getBilinearCoords(double alpha,
double beta)
|
double[] |
getBilinearCoords(Vec4 point)
|
Vec4 |
getP11()
|
double[] |
invertBilinear(Vec4 U)
|
static double[] |
invertBilinear(Vec4 U,
Vec4 X,
Vec4 Y,
Vec4 Z,
Vec4 W)
|
static void |
main(String[] args)
|
| Methods inherited from class gov.nasa.worldwind.geom.BarycentricTriangle |
|---|
getBarycentricCoords, getBarycentricCoords, getLocation, getP00, getP01, getP10, getPoint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Vec4 p11
| Constructor Detail |
|---|
public BarycentricQuadrilateral(LatLon p00,
LatLon p10,
LatLon p11,
LatLon p01)
public BarycentricQuadrilateral(Point p00,
Point p10,
Point p11,
Point p01)
public BarycentricQuadrilateral(Vec4 p00,
Vec4 p10,
Vec4 p11,
Vec4 p01)
| Method Detail |
|---|
public boolean contains(Vec4 p)
contains in class BarycentricTriangle
public double[] getBilinearCoords(double alpha,
double beta)
getBilinearCoords in interface BarycentricPlanarShapegetBilinearCoords in class BarycentricTrianglepublic double[] getBilinearCoords(Vec4 point)
public Vec4 getP11()
public double[] invertBilinear(Vec4 U)
public static double[] invertBilinear(Vec4 U,
Vec4 X,
Vec4 Y,
Vec4 Z,
Vec4 W)
public static void main(String[] args)
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||