Dual lattice: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 9: Line 9:


for (i=-5;i<6;i++) for (j=-5;j<6;j++) {
for (i=-5;i<6;i++) for (j=-5;j<6;j++) {
   if (!(i==1&&j==0) && !(i==0&&j==1)) {
   if (!(i==1&&j==0) && !(i==0&&j==1)) {  
  p[i*11+j] = brd2.create('point',[
    brd.create('point',[
       function(x,y){ return function(){ return x*b3.X()+y*b4.X(); };}(i,j),
       function(x,y){ return function(){ return x*b3.X()+y*b4.X(); };}(i,j),
       function(x,y){ return function(){ return x*b3.Y()+y*b4.Y(); };}(i,j)
       function(x,y){ return function(){ return x*b3.Y()+y*b4.Y(); };}(i,j)
       ], {name:'',style:4});
       ], {name:''});
}}
}}



Revision as of 07:24, 17 June 2016