Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Cell = {
- act:false,
- ind:0,
- xmin:0,
- xmax:0,
- ymin:0,
- ymax:0,
- xs:[],
- ys:[],
- }
- var C = Cell = [];
- funcion MyFun() {
- for(var i = 0; i < Count; i++) {
- var c = Cell = {};//обнуляю после каждой итерации
- for(var j = 0; j < 10; j++) {
- c.xs.push(Math.random());
- c.ys.push(Math.random());
- }
- C.push(c);
- }
- }
- var C = Cell = [];
- var c = Cell = {};
- function Cell () {
- this.act = false;
- this.ind = 0;
- this.xmin = 0;
- this.xmax = 0;
- this.ymin = 0;
- this.ymax = 0;
- this.xs = [];
- this.ys = [];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement