Class PolyLine_2

All Implemented Interfaces:
PolyLine_<Point_2>

public class PolyLine_2 extends PointCloud_2 implements PolyLine_<Point_2>
Class representing a polyline in the plane (ordered sequence of points in 2D)
Version:
dec 2012
Author:
Luca Castelli Aleardi, Ecole Polytechnique (INF562)
  • Constructor Details

    • PolyLine_2

      public PolyLine_2()
      Create a new empty polyline
    • PolyLine_2

      public PolyLine_2(int n)
      Create a polyline of size n
      Parameters:
      n - number of points
    • PolyLine_2

      public PolyLine_2(ArrayList<Point_2> points)
      Create a new polyline (a copy of the list is created) from a collection of points
      Parameters:
      points - a collection of points
    • PolyLine_2

      public PolyLine_2(PointCloud_2 pointCloud)
      Create a polyline from a point cloud (there is no copy of the list)
      Parameters:
      a - point cloud
  • Method Details