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); strokeWeight(4); for(int i=0; i<8; i++) point( 50+ points[i].x, 50+ points[i].y); } void mouseDragged(){ int xoff = mouseX - pmouseX; int yoff = mouseY - pmouseY; for(int i=0; i