Dual lattice: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<jsxgraph height="500" width="500" board="board" box="box1"> | <jsxgraph height="500" width="500" board="board" box="box1"> | ||
brd = JXG.JSXGraph.initBoard('box1', {boundingbox: [-5, 5, 5, -5], axis:true}); | brd = JXG.JSXGraph.initBoard('box1', {boundingbox: [-5, 5, 5, -5], axis:true}); | ||
var b1 = brd.create('point', [4,0], {size:6, name:'', color:'blue', snaptogrid: true}), | var b1 = brd.create('point', [4,0], {size:6, name:'1', color:'blue', snaptogrid: true}), | ||
b2 = brd.create('point', [3,3], {size:6, name:'', color:'blue', snaptogrid: true}), | b2 = brd.create('point', [3,3], {size:6, name:'2', color:'blue', snaptogrid: true}), | ||
v1 = brd.create('arrow', [[0,0], b1], {strokeColor: 'black'}), | v1 = brd.create('arrow', [[0,0], b1], {strokeColor: 'black'}), | ||
v2 = brd.create('arrow', [[0,0], b2], {strokeColor: 'red'}), | v2 = brd.create('arrow', [[0,0], b2], {strokeColor: 'red'}), |