HE_Mesh2014  2.0.11
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
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)
 
WB_Coord p1 ()
 
WB_Coord p2 ()
 
WB_Coord p3 ()
 
double a ()
 
double b ()
 
double c ()
 
double cosA ()
 
double cosB ()
 
double cosC ()
 
WB_GeometryType getType ()
 
WB_Coord getPoint (final int i)
 
WB_Point getCenter ()
 
WB_Geometry 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 ()
 
double getSignedArea ()
 
WB_Circle getCircumcircle ()
 
WB_Circle getIncircle ()
 
WB_Point getIncenter ()
 
- Public Member Functions inherited from wblut.geom.WB_Simplex
WB_Coord getPoint (int i)
 
- Public Member Functions inherited from wblut.geom.WB_Geometry
WB_Geometry apply (WB_Transform T)
 

Static Public Member Functions

static double getArea (WB_Coord p1, WB_Coord p2, WB_Coord p3)
 
static double getSignedArea (WB_Coord p1, WB_Coord p2, WB_Coord p3)
 
static boolean sameSide2D (final WB_Coord p1, final WB_Coord p2, final WB_Coord A, final WB_Coord B)
 
static boolean pointInTriangle2D (final WB_Coord p, final WB_Coord A, final WB_Coord B, final WB_Coord C)
 
static boolean pointInTriangle2D (final WB_Coord p, final WB_Triangle T)
 
static boolean pointInTriangleBary2D (final WB_Coord p, final WB_Coord A, final WB_Coord B, final WB_Coord C)
 
static boolean pointInTriangleBary3D (final WB_Coord p, final WB_Coord A, final WB_Coord B, final WB_Coord C)
 
static boolean pointInTriangleBary2D (final WB_Coord p, final WB_Triangle T)
 
static boolean pointInTriangleBary3D (final WB_Coord p, final WB_Triangle T)
 
static double twiceSignedTriArea2D (final WB_Coord p1, final WB_Coord p2, final WB_Coord p3)
 
static double twiceSignedTriArea2D (final double x1, final double y1, final double x2, final double y2, final double x3, final double y3)
 

Static Public Attributes

static final WB_GeometryFactory geometryfactory = WB_GeometryFactory.instance()
 
- Static Public Attributes inherited from wblut.geom.WB_Geometry
static final WB_GeometryFactory geometryfactory
 

Protected Member Functions

 WB_Triangle ()
 
void update ()
 

Private Attributes

double a
 
double b
 
double c
 
double cosA
 
double cosB
 
double cosC
 

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_Geometry 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
double wblut.geom.WB_Triangle.getArea ( )

Gets the area.

Returns
the area
static double wblut.geom.WB_Triangle.getArea ( WB_Coord  p1,
WB_Coord  p2,
WB_Coord  p3 
)
static

Gets the area.

Parameters
p1
p2
p3
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 ( )
Returns

Implements wblut.geom.WB_Simplex.

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
static double wblut.geom.WB_Triangle.getSignedArea ( WB_Coord  p1,
WB_Coord  p2,
WB_Coord  p3 
)
static
Parameters
p1
p2
p3
Returns
WB_GeometryType wblut.geom.WB_Triangle.getType ( )
Returns

Implements wblut.geom.WB_Geometry.

WB_Coord wblut.geom.WB_Triangle.p1 ( )
Returns
WB_Coord wblut.geom.WB_Triangle.p2 ( )
Returns
WB_Coord wblut.geom.WB_Triangle.p3 ( )
Returns
static boolean wblut.geom.WB_Triangle.pointInTriangle2D ( final WB_Coord  p,
final WB_Coord  A,
final WB_Coord  B,
final WB_Coord  C 
)
static

Check if point p lies in triangle A-B-C.

Parameters
pthe p
Athe a
Bthe b
Cthe c
Returns
true, false
static boolean wblut.geom.WB_Triangle.pointInTriangle2D ( final WB_Coord  p,
final WB_Triangle  T 
)
static

Point in triangle2 d.

Parameters
pthe p
Tthe t
Returns
true, if successful
static boolean wblut.geom.WB_Triangle.pointInTriangleBary2D ( final WB_Coord  p,
final WB_Coord  A,
final WB_Coord  B,
final WB_Coord  C 
)
static

Check if point p lies in triangle A-B-C using barycentric coordinates.

Parameters
pthe p
Athe a
Bthe b
Cthe c
Returns
true, false
static boolean wblut.geom.WB_Triangle.pointInTriangleBary2D ( final WB_Coord  p,
final WB_Triangle  T 
)
static

Point in triangle bary2 d.

Parameters
pthe p
Tthe t
Returns
true, if successful
static boolean wblut.geom.WB_Triangle.pointInTriangleBary3D ( final WB_Coord  p,
final WB_Coord  A,
final WB_Coord  B,
final WB_Coord  C 
)
static
Parameters
p
A
B
C
Returns
static boolean wblut.geom.WB_Triangle.pointInTriangleBary3D ( final WB_Coord  p,
final WB_Triangle  T 
)
static
Parameters
p
T
Returns
static boolean wblut.geom.WB_Triangle.sameSide2D ( final WB_Coord  p1,
final WB_Coord  p2,
final WB_Coord  A,
final WB_Coord  B 
)
static

Check if points p1 and p2 lie on same side of line A-B.

Parameters
p1the p1
p2the p2
Athe a
Bthe b
Returns
true, false
static double wblut.geom.WB_Triangle.twiceSignedTriArea2D ( final WB_Coord  p1,
final WB_Coord  p2,
final WB_Coord  p3 
)
static

Twice signed tri area2 d.

Parameters
p1the p1
p2the p2
p3the p3
Returns
the double
static double wblut.geom.WB_Triangle.twiceSignedTriArea2D ( final double  x1,
final double  y1,
final double  x2,
final double  y2,
final double  x3,
final double  y3 
)
static

Twice signed tri area2 d.

Parameters
x1the x1
y1the y1
x2the x2
y2the y2
x3the x3
y3the y3
Returns
the double
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.

final WB_GeometryFactory wblut.geom.WB_Triangle.geometryfactory = WB_GeometryFactory.instance()
static

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