Package 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.
-
-
Constructor Summary
Constructors Constructor Description BarycentricQuadrilateral(LatLon p00, LatLon p10, LatLon p11, LatLon p01)
BarycentricQuadrilateral(Vec4 p00, Vec4 p10, Vec4 p11, Vec4 p01)
BarycentricQuadrilateral(java.awt.Point p00, java.awt.Point p10, java.awt.Point p11, java.awt.Point p01)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(java.lang.String[] args)
-
Methods inherited from class gov.nasa.worldwind.geom.BarycentricTriangle
getBarycentricCoords, getBarycentricCoords, getLocation, getP00, getP01, getP10, getPoint
-
-
-
-
Field Detail
-
p11
protected Vec4 p11
-
-
Method Detail
-
getP11
public Vec4 getP11()
-
contains
public boolean contains(Vec4 p)
- Overrides:
contains
in classBarycentricTriangle
-
getBilinearCoords
public double[] getBilinearCoords(double alpha, double beta)
- Specified by:
getBilinearCoords
in interfaceBarycentricPlanarShape
- Overrides:
getBilinearCoords
in classBarycentricTriangle
-
getBilinearCoords
public double[] getBilinearCoords(Vec4 point)
-
invertBilinear
public double[] invertBilinear(Vec4 U)
-
main
public static void main(java.lang.String[] args)
-
-