gov.nasa.worldwind.geom
Class BarycentricQuadrilateral
java.lang.Object
gov.nasa.worldwind.geom.BarycentricTriangle
gov.nasa.worldwind.geom.BarycentricQuadrilateral
- All Implemented Interfaces:
- BarycentricPlanarShape
public class BarycentricQuadrilateral
- extends BarycentricTriangle
See http://www.cs.kuleuven.be/~ares/Publications/LagaeDutre2005AnEfficientRayQuadrilateralIntersectionTest/paper.pdf
for a description of the calculations used to compute barycentric and bilinear coordinates.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
p11
protected Vec4 p11
BarycentricQuadrilateral
public BarycentricQuadrilateral(LatLon p00,
LatLon p10,
LatLon p11,
LatLon p01)
BarycentricQuadrilateral
public BarycentricQuadrilateral(Point p00,
Point p10,
Point p11,
Point p01)
BarycentricQuadrilateral
public BarycentricQuadrilateral(Vec4 p00,
Vec4 p10,
Vec4 p11,
Vec4 p01)
contains
public boolean contains(Vec4 p)
- Overrides:
contains
in class BarycentricTriangle
getBilinearCoords
public double[] getBilinearCoords(double alpha,
double beta)
- Specified by:
getBilinearCoords
in interface BarycentricPlanarShape
- Overrides:
getBilinearCoords
in class BarycentricTriangle
getBilinearCoords
public double[] getBilinearCoords(Vec4 point)
getP11
public Vec4 getP11()
invertBilinear
public double[] invertBilinear(Vec4 U)
invertBilinear
public static double[] invertBilinear(Vec4 U,
Vec4 X,
Vec4 Y,
Vec4 Z,
Vec4 W)
main
public static void main(String[] args)