class Path {
ArrayList<Vec3D> points;
float radius = 20; //path Radius
Path() {
points = new ArrayList<Vec3D>();
}
void addPoint(float x, float y) {
Vec3D point = new Vec3D(x, y, 0);
points.add(point);
}
//-------------------------------------------------------------------------------------------
//---------------------------------------Draw the Path---------------------------------------
//-------------------------------------------------------------------------------------------
void display() {
// Draw thin line for center of path
stroke(255);
strokeWeight(1);
noFill();
beginShape();
for (Vec3D v : points) {
vertex(v.x, v.y);
}
endShape();
}
}