protected class MannTriangulator.PointBag
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected org.cell2d.celick.geom.MannTriangulator.Point |
first
The first point in the bag - head of the list
|
protected MannTriangulator.PointBag |
next
The next bag in the list of bags
|
Modifier | Constructor and Description |
---|---|
protected |
PointBag() |
Modifier and Type | Method and Description |
---|---|
void |
add(org.cell2d.celick.geom.MannTriangulator.Point p)
Add a point to the bag
|
void |
clear()
Clear all the points from this bag
|
void |
computeAngles()
Compute the angles for the points in this bag
|
boolean |
contains(Vector2f point)
Check if the point provided was contained
|
int |
countPoints()
Get the number of points in the bag
|
boolean |
doesIntersectSegment(Vector2f v1,
Vector2f v2)
Check if the points in this bag form a path intersecting
with the specified path
|
protected org.cell2d.celick.geom.MannTriangulator.Point first
protected MannTriangulator.PointBag next
public void clear()
public void add(org.cell2d.celick.geom.MannTriangulator.Point p)
p
- The point to addpublic void computeAngles()
public boolean doesIntersectSegment(Vector2f v1, Vector2f v2)
v1
- The start point of the segmentv2
- The end point of the segmentpublic int countPoints()
public boolean contains(Vector2f point)
point
- The point provided