NASA World Wind

gov.nasa.worldwind.geom
Class BarycentricTriangle

java.lang.Object
  extended by gov.nasa.worldwind.geom.BarycentricTriangle
All Implemented Interfaces:
BarycentricPlanarShape
Direct Known Subclasses:
BarycentricQuadrilateral

public class BarycentricTriangle
extends Object
implements BarycentricPlanarShape


Field Summary
protected  Vec4 p00
           
protected  Vec4 p01
           
protected  Vec4 p10
           
protected  Vec4 q1
           
protected  Vec4 q3
           
 
Constructor Summary
BarycentricTriangle(LatLon p00, LatLon p10, LatLon p01)
           
BarycentricTriangle(Point p00, Point p10, Point p01)
           
BarycentricTriangle(Vec4 p00, Vec4 p10, Vec4 p01)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p00

protected Vec4 p00

p01

protected Vec4 p01

p10

protected Vec4 p10

q1

protected Vec4 q1

q3

protected Vec4 q3
Constructor Detail

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)
Method Detail

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

NASA World Wind