Lattices: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 8: Line 8:
for (i=-5;i<6;i++) for (j=-5;j<6;j++) {
for (i=-5;i<6;i++) for (j=-5;j<6;j++) {
   brd.createElement('point',[
   brd.createElement('point',[
       function(){ return i*b1.X()+j*b2.X(); },
       function(x,y){ return function(){ return x*b1.X()+y*b2.X(); };}(i,j),
       function(){ return i*b1.Y()+j*b2.Y(); }
       function(x,y){ return function(){ return x*b1.Y()+y*b2.Y(); };}(i,j)
       ], {name:''});
       ], {name:''});
}
}

Revision as of 07:22, 20 April 2009