Package gov.nasa.worldwind.geom
Class BarycentricTriangle
- java.lang.Object
-
- gov.nasa.worldwind.geom.BarycentricTriangle
-
- All Implemented Interfaces:
BarycentricPlanarShape
- Direct Known Subclasses:
BarycentricQuadrilateral
public class BarycentricTriangle extends java.lang.Object implements BarycentricPlanarShape
-
-
Constructor Summary
Constructors Constructor Description BarycentricTriangle(LatLon p00, LatLon p10, LatLon p01)
BarycentricTriangle(Vec4 p00, Vec4 p10, Vec4 p01)
BarycentricTriangle(java.awt.Point p00, java.awt.Point p10, java.awt.Point p01)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getP00
public Vec4 getP00()
-
getP10
public Vec4 getP10()
-
getP01
public Vec4 getP01()
-
getBarycentricCoords
public double[] getBarycentricCoords(Vec4 p)
- Specified by:
getBarycentricCoords
in interfaceBarycentricPlanarShape
-
getBarycentricCoords
public double[] getBarycentricCoords(LatLon location)
-
contains
public boolean contains(Vec4 p)
-
getPoint
public Vec4 getPoint(double[] w)
- Specified by:
getPoint
in interfaceBarycentricPlanarShape
-
getLocation
public LatLon getLocation(double[] w)
-
getBilinearCoords
public double[] getBilinearCoords(double alpha, double beta)
- Specified by:
getBilinearCoords
in interfaceBarycentricPlanarShape
-
-