public class PolyLine_2 extends PointCloud_2 implements PolyLine_<Point_2>
| Constructor and Description |
|---|
PolyLine_2()
Create a new empty polyline
|
PolyLine_2(java.util.ArrayList<Point_2> points)
Create a new polyline (a copy of the list is created) from a collection of points
|
PolyLine_2(int n)
Create a polyline of size n
|
PolyLine_2(PointCloud_2 pointCloud)
Create a polyline from a point cloud (there is no copy of the list)
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFirst(Point_2 p)
A a point to the polyline
|
void |
addLast(Point_2 p)
Append a point to the polyline
|
java.util.Collection<Segment_2> |
computeSegments()
Compute and return the list of segments defining the polyline
|
boundingBox, max, min, pointsInCircleadd, dimension, listOfPoints, remove, sizepublic PolyLine_2()
public PolyLine_2(int n)
n - number of pointspublic PolyLine_2(java.util.ArrayList<Point_2> points)
points - a collection of pointspublic PolyLine_2(PointCloud_2 pointCloud)
a - point cloudpublic void addFirst(Point_2 p)
PolyLine_public void addLast(Point_2 p)
PolyLine_public java.util.Collection<Segment_2> computeSegments()