Still new to processing, so am turning to the community for some troubleshooting. I'm working on developing a script that creates regions of points in 3D through some vector math. These points will ultimately be moving agents that define strands, but I am first trying to setup and test these regions by drawing points. I'm running into trouble with my ArrayLists and am getting the error "the field ArrayList is not visible." Script and image of how I am generating these points on respective 3D planes is below.
Thanks for the help.
Code:
import toxi.geom.*;
import peasy.*;
PeasyCam cam;
float envSize = 300;
float degree = 1.57;
ArrayList agentPopulation;
ArrayList strandPopulation;
void setup () {
size(800, 800, P3D);
smooth();
cam = new PeasyCam (this, 800);
for (int i=0; i<5; i++) {
//create first vector that defines area
Vec3D A = new Vec3D(random(-envSize, envSize), random(-envSize, envSize), random (-envSize, envSize));
//create rotation axis for first vector
Vec3D Rot = new Vec3D(random(-envSize, envSize), random(-envSize, envSize), random (-envSize, envSize));
//create copy of first vector to be rotated
Vec3D AC = new Vec3D(A.copy());
//rotate copied vector to new position
AC.getRotatedAroundAxis(Rot, degree);
//define max values for vectors
float vLength01 = random(40, 80);
float vLength02 = random(40, 80);
//restrict magnitude of Vector A and Vector AC
A.getNormalizedTo(vLength01);
AC.getNormalizedTo(vLength02);
//define arraylists
ArrayList strandPopulation = new ArrayList();
//create for loop to create agents in given region