Dual lattice: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) 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)) { | ||
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:'' | ], {name:''}); | ||
}} | }} | ||