Difference between revisions of "Dual lattice"

From JSXGraph Wiki
Jump to: navigation, search
Line 11: Line 11:
 
   if (!(i==1&&j==0) && !(i==0&&j==1)) {  
 
   if (!(i==1&&j==0) && !(i==0&&j==1)) {  
 
     brd.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*b1.X()+y*b2.X(); };}(i,j),
       function(x,y){ return function(){ return x*b3.Y()+y*b4.Y(); };}(i,j)
+
       function(x,y){ return function(){ return x*b1.Y()+y*b2.Y(); };}(i,j)
 
       ], {name:''});
 
       ], {name:''});
 
}}
 
}}

Revision as of 09:24, 17 June 2016