HE_Mesh  5.1.2
wblut.geom.WB_Triangle Class Reference
+ Inheritance diagram for wblut.geom.WB_Triangle:

Public Member Functions

 WB_Triangle (final WB_Coord p1, final WB_Coord p2, final WB_Coord p3)
 
void cycle ()
 
void cycle (int n)
 
WB_Coord p1 ()
 
WB_Coord p2 ()
 
WB_Coord p3 ()
 
double a ()
 
double b ()
 
double c ()
 
double cosA ()
 
double cosB ()
 
double cosC ()
 
WB_Coord getPoint (final int i)
 
WB_Point getCenter ()
 
WB_Triangle apply (final WB_Transform T)
 
WB_Plane getPlane ()
 
WB_Map2D getEmbeddedPlane ()
 
WB_Point getCentroid ()
 
WB_Point getCircumcenter ()
 
WB_Point getOrthocenter ()
 
WB_Point getPointFromTrilinear (final double x, final double y, final double z)
 
WB_Point getPointFromBarycentric (final double x, final double y, final double z)
 
double[] getBarycentricCoordinates (final WB_Coord p)
 
WB_Point getBarycentric (final WB_Coord p)
 
double getArea ()
 
WB_AABB getAABB ()
 
WB_AABB2D getAABB2D ()
 
double getSignedArea ()
 
WB_Circle getCircumcircle ()
 
WB_Circle getIncircle ()
 
WB_Point getIncenter ()
 
double minX ()
 
double minY ()
 
double minZ ()
 
double maxX ()
 
double maxY ()
 
double maxZ ()
 

Protected Member Functions

 WB_Triangle ()
 
void update ()
 

Private Attributes

double a
 
double b
 
double c
 
double cosA
 
double cosB
 
double cosC
 
WB_GeometryFactory geometryfactory = new WB_GeometryFactory()
 

Constructor & Destructor Documentation

wblut.geom.WB_Triangle.WB_Triangle ( )
protected
wblut.geom.WB_Triangle.WB_Triangle ( final WB_Coord  p1,
final WB_Coord  p2,
final WB_Coord  p3 
)
Parameters
p1
p2
p3

Member Function Documentation

double wblut.geom.WB_Triangle.a ( )
Returns
WB_Triangle wblut.geom.WB_Triangle.apply ( final WB_Transform  T)
double wblut.geom.WB_Triangle.b ( )
Returns
double wblut.geom.WB_Triangle.c ( )
Returns
double wblut.geom.WB_Triangle.cosA ( )
Returns
double wblut.geom.WB_Triangle.cosB ( )
Returns
double wblut.geom.WB_Triangle.cosC ( )
Returns
void wblut.geom.WB_Triangle.cycle ( )
void wblut.geom.WB_Triangle.cycle ( int  n)
WB_AABB wblut.geom.WB_Triangle.getAABB ( )
WB_AABB2D wblut.geom.WB_Triangle.getAABB2D ( )
double wblut.geom.WB_Triangle.getArea ( )

Gets the area.

Returns
the area
WB_Point wblut.geom.WB_Triangle.getBarycentric ( final WB_Coord  p)

Barycentric.

Parameters
pthe p
Returns
the w b_ point
double [] wblut.geom.WB_Triangle.getBarycentricCoordinates ( final WB_Coord  p)
Parameters
p
Returns
WB_Point wblut.geom.WB_Triangle.getCenter ( )
WB_Point wblut.geom.WB_Triangle.getCentroid ( )

Get centroid.

Returns
centroid
WB_Point wblut.geom.WB_Triangle.getCircumcenter ( )

Get circumcenter.

Returns
circumcenter
WB_Circle wblut.geom.WB_Triangle.getCircumcircle ( )

Get circumcircle.

Returns
circumcircle
WB_Map2D wblut.geom.WB_Triangle.getEmbeddedPlane ( )
Returns
WB_Point wblut.geom.WB_Triangle.getIncenter ( )

Get incenter.

Returns
incenter
WB_Circle wblut.geom.WB_Triangle.getIncircle ( )

Get incircle.

Returns
incircle
WB_Point wblut.geom.WB_Triangle.getOrthocenter ( )

Get orthocenter.

Returns
orthocenter
WB_Plane wblut.geom.WB_Triangle.getPlane ( )

Get plane of triangle.

Returns
WB_Plane
WB_Coord wblut.geom.WB_Triangle.getPoint ( final int  i)
WB_Point wblut.geom.WB_Triangle.getPointFromBarycentric ( final double  x,
final double  y,
final double  z 
)

Get point from barycentric coordinates.

Parameters
xthe x
ythe y
zthe z
Returns
point
WB_Point wblut.geom.WB_Triangle.getPointFromTrilinear ( final double  x,
final double  y,
final double  z 
)

Get point from trilinear coordinates.

Parameters
xthe x
ythe y
zthe z
Returns
point
double wblut.geom.WB_Triangle.getSignedArea ( )
Returns
double wblut.geom.WB_Triangle.maxX ( )
double wblut.geom.WB_Triangle.maxY ( )
double wblut.geom.WB_Triangle.maxZ ( )
double wblut.geom.WB_Triangle.minX ( )
double wblut.geom.WB_Triangle.minY ( )
double wblut.geom.WB_Triangle.minZ ( )
WB_Coord wblut.geom.WB_Triangle.p1 ( )
Returns
WB_Coord wblut.geom.WB_Triangle.p2 ( )
Returns
WB_Coord wblut.geom.WB_Triangle.p3 ( )
Returns
void wblut.geom.WB_Triangle.update ( )
protected

Update side lengths and corner angles.

Member Data Documentation

double wblut.geom.WB_Triangle.a
private

Length of side a.

double wblut.geom.WB_Triangle.b
private

Length of side b.

double wblut.geom.WB_Triangle.c
private

Length of side c.

double wblut.geom.WB_Triangle.cosA
private

Cosine of angle A.

double wblut.geom.WB_Triangle.cosB
private

Cosine of angle B.

double wblut.geom.WB_Triangle.cosC
private

Cosine of angle C.

WB_GeometryFactory wblut.geom.WB_Triangle.geometryfactory = new WB_GeometryFactory()
private

The documentation for this class was generated from the following file: