MyPoint[] points; void setup(){ points = new MyPoint[8]; points[0] = new MyPoint(-20., -20., -20.); points[1] = new MyPoint( 20., -20., -20.); points[2] = new MyPoint( 20., 20., -20.); points[3] = new MyPoint(-20., 20., -20.); points[4] = new MyPoint(-20., -20., 20.); points[5] = new MyPoint( 20., -20., 20.); points[6] = new MyPoint( 20., 20., 20.); points[7] = new MyPoint(-20., 20., 20.); } void draw(){ background(255); for(int j=0; j<8; j++) for(int i=0; i<8; i++){ line(50+points[i].xP(128.), 50+points[i].yP(128.), 50+points[j].xP(128.), 50+points[j].yP(128.) ); } } void mouseDragged(){ int xoff = mouseX - pmouseX; int yoff = mouseY - pmouseY; for(int i=0; i