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 Object
- implements BarycentricPlanarShape
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
p00
protected Vec4 p00
p01
protected Vec4 p01
p10
protected Vec4 p10
q1
protected Vec4 q1
q3
protected Vec4 q3
BarycentricTriangle
public BarycentricTriangle(LatLon p00,
LatLon p10,
LatLon p01)
BarycentricTriangle
public BarycentricTriangle(Point p00,
Point p10,
Point p01)
BarycentricTriangle
public BarycentricTriangle(Vec4 p00,
Vec4 p10,
Vec4 p01)
contains
public boolean contains(Vec4 p)
getBarycentricCoords
public double[] getBarycentricCoords(LatLon location)
getBarycentricCoords
public double[] getBarycentricCoords(Vec4 p)
- Specified by:
getBarycentricCoords
in interface BarycentricPlanarShape
getBilinearCoords
public double[] getBilinearCoords(double alpha,
double beta)
- Specified by:
getBilinearCoords
in interface BarycentricPlanarShape
getLocation
public LatLon getLocation(double[] w)
getP00
public Vec4 getP00()
getP01
public Vec4 getP01()
getP10
public Vec4 getP10()
getPoint
public Vec4 getPoint(double[] w)
- Specified by:
getPoint
in interface BarycentricPlanarShape