315316317318319320321322323324325
Point3 oo = (Point3) o; xyz[0] = oo.x; xyz[1] = oo.y; xyz[2] = oo.z; } else if(o instanceof Vector3) { Vector3 oo = (Vector3) o; xyz[0] = oo.data[0]; xyz[1] = oo.data[1]; xyz[2] = oo.data[2]; } else if(o instanceof Point2) { Point2 oo = (Point2) o;
390391392393394395396397398399400
Point3 oo = (Point3) o; pos.x = oo.x; pos.y = oo.y; pos.z = oo.z; } else if(o instanceof Vector3) { Vector3 oo = (Vector3) o; pos.x = oo.data[0]; pos.y = oo.data[1]; pos.z = oo.data[2]; } else if(o instanceof Point2) { Point2 oo = (Point2) o;
133134135136137138139140
*/ public NodeParticle(BarnesHutLayout box, String id, double x, double y, double z) { super(id, x, y, box.is3D ? z : 0); this.box = box; disp = new Vector3(); createDebug(); }
166167168169170171172173174175176
@Override public void move(int time) { if (!frozen) { disp.fill(0); Vector3 delta = new Vector3(); repE = 0; attE = 0; if (box.viewZone < 0)