wblut.geom.WB_Ring.WB_Ring |
( |
| ) |
|
|
protected |
wblut.geom.WB_Ring.WB_Ring |
( |
final List<?extends WB_Coord > |
points | ) |
|
|
protected |
wblut.geom.WB_Ring.WB_Ring |
( |
final WB_Coord[] |
points | ) |
|
|
protected |
double wblut.geom.WB_Ring.a |
( |
final int |
i | ) |
|
a.x+b.y+c=0
- Parameters
-
- Returns
- a for a 2D line
double wblut.geom.WB_Ring.b |
( |
final int |
i | ) |
|
a.x+b.y+c=0
- Parameters
-
- Returns
- b for a 2D line
double wblut.geom.WB_Ring.c |
( |
final int |
i | ) |
|
a.x+b.y+c=0
- Parameters
-
- Returns
- c for a 2D line
boolean wblut.geom.WB_Ring.equals |
( |
final Object |
o | ) |
|
double wblut.geom.WB_Ring.getd |
( |
final int |
i, |
|
|
final int |
j |
|
) |
| |
WB_Vector wblut.geom.WB_Ring.getDirection |
( |
final int |
i | ) |
|
Get direction.
- Parameters
-
- Returns
- direction
void wblut.geom.WB_Ring.getDirections |
( |
| ) |
|
|
private |
float wblut.geom.WB_Ring.getf |
( |
final int |
i, |
|
|
final int |
j |
|
) |
| |
double wblut.geom.WB_Ring.getLength |
( |
final int |
i | ) |
|
WB_Vector wblut.geom.WB_Ring.getNormal |
( |
final int |
i | ) |
|
Get a normal to the line.
- Parameters
-
- Returns
- a normal
int wblut.geom.WB_Ring.getNumberOfPoints |
( |
| ) |
|
WB_Point wblut.geom.WB_Ring.getParametricPointOnLine |
( |
final double |
t | ) |
|
WB_Point wblut.geom.WB_Ring.getPoint |
( |
final int |
i | ) |
|
WB_Point wblut.geom.WB_Ring.getPointOnLine |
( |
final double |
t | ) |
|
WB_Segment wblut.geom.WB_Ring.getSegment |
( |
final int |
i | ) |
|
boolean wblut.geom.WB_Ring.isCCW |
( |
| ) |
|
- Returns
This check catches cases where the ring contains an A-B-A configuration of points. This can happen if the ring does not contain 3 distinct points (including the case where the input array has fewer than 4 elements), or it contains coincident line segments.
If disc is exactly 0, lines are collinear. There are two possible cases: (1) the lines lie along the x axis in opposite directions (2) the lines lie on top of one another
(1) is handled by checking if next is left of prev ==> CCW (2) will never happen if the ring is valid, so don't check for it (Might want to assert this)
The documentation for this class was generated from the following file: