|
static boolean | sameSide2D (final WB_Coordinate p1, final WB_Coordinate p2, final WB_Coordinate A, final WB_Coordinate B) |
|
static boolean | pointInTriangle2D (final WB_Coordinate p, final WB_Coordinate A, final WB_Coordinate B, final WB_Coordinate C) |
|
static boolean | pointInTriangle2D (final WB_Coordinate p, final WB_Triangle T) |
|
static boolean | pointInTriangleBary2D (final WB_Coordinate p, final WB_Coordinate A, final WB_Coordinate B, final WB_Coordinate C) |
|
static boolean | pointInTriangleBary3D (final WB_Coordinate p, final WB_Coordinate A, final WB_Coordinate B, final WB_Coordinate C) |
|
static boolean | pointInTriangleBary2D (final WB_Coordinate p, final WB_Triangle T) |
|
static boolean | pointInTriangleBary3D (final WB_Coordinate p, final WB_Triangle T) |
|
static double | twiceSignedTriArea2D (final WB_Coordinate p1, final WB_Coordinate p2, final WB_Coordinate p3) |
|
static double | twiceSignedTriArea2D (final double x1, final double y1, final double x2, final double y2, final double x3, final double y3) |
|
wblut.geom.WB_Triangle.WB_Triangle |
( |
| ) |
|
|
protected |
double wblut.geom.WB_Triangle.a |
( |
| ) |
|
double wblut.geom.WB_Triangle.b |
( |
| ) |
|
double wblut.geom.WB_Triangle.c |
( |
| ) |
|
double wblut.geom.WB_Triangle.cosA |
( |
| ) |
|
double wblut.geom.WB_Triangle.cosB |
( |
| ) |
|
double wblut.geom.WB_Triangle.cosC |
( |
| ) |
|
double wblut.geom.WB_Triangle.getArea |
( |
| ) |
|
Gets the area.
- Returns
- the area
Barycentric.
- Parameters
-
- Returns
- the w b_ point
double [] wblut.geom.WB_Triangle.getBarycentricCoordinates |
( |
final WB_Coordinate |
p | ) |
|
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_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 |
( |
| ) |
|
WB_Point 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
-
- Returns
- point
WB_Point wblut.geom.WB_Triangle.getPointFromTrilinear |
( |
final double |
x, |
|
|
final double |
y, |
|
|
final double |
z |
|
) |
| |
Get point from trilinear coordinates.
- Parameters
-
- Returns
- point
Check if point p lies in triangle A-B-C.
- Parameters
-
p | the p |
A | the a |
B | the b |
C | the c |
- Returns
- true, false
Point in triangle2 d.
- Parameters
-
- Returns
- true, if successful
Check if point p lies in triangle A-B-C using barycentric coordinates.
- Parameters
-
p | the p |
A | the a |
B | the b |
C | the c |
- Returns
- true, false
Point in triangle bary2 d.
- Parameters
-
- Returns
- true, if successful
Check if points p1 and p2 lie on same side of line A-B.
- Parameters
-
p1 | the p1 |
p2 | the p2 |
A | the a |
B | the b |
- Returns
- true, false
Twice signed tri area2 d.
- Parameters
-
p1 | the p1 |
p2 | the p2 |
p3 | the 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
-
x1 | the x1 |
y1 | the y1 |
x2 | the x2 |
y2 | the y2 |
x3 | the x3 |
y3 | the y3 |
- Returns
- the double
void wblut.geom.WB_Triangle.update |
( |
| ) |
|
|
protected |
Update side lengths and corner angles.
double wblut.geom.WB_Triangle.a |
|
private |
double wblut.geom.WB_Triangle.b |
|
private |
double wblut.geom.WB_Triangle.c |
|
private |
double wblut.geom.WB_Triangle.cosA |
|
private |
double wblut.geom.WB_Triangle.cosB |
|
private |
double wblut.geom.WB_Triangle.cosC |
|
private |
Initial value:= WB_GeometryFactory
.instance()
The documentation for this class was generated from the following file: