Magnetized points: Difference between revisions

From JSXGraph Wiki
(Created page with "<jsxgraph width="400" height="400" box="box"> snatchDistance:2}); var brd = JXG.JSXGraph.initBoard('box', {axis:false, boundingbox: [-5, 5, 5, -5]}), li = brd.create('line', [...")
 
No edit summary
Line 1: Line 1:
<jsxgraph width="400" height="400" box="box">
<jsxgraph width="400" height="400" box="box">
snatchDistance:2});
var brd = JXG.JSXGraph.initBoard('box', {axis:false, boundingbox: [-5, 5, 5, -5]}),
var brd = JXG.JSXGraph.initBoard('box', {axis:false, boundingbox: [-5, 5, 5, -5]}),
   li = brd.create('line', [1,2,3]),
   li = brd.create('line', [1,2,3]),
   p = brd.create('point', [0,0], {attractors: [li], attractorDistance:0.2, snatchDistance: 0.2});
   p = brd.create('point', [0,0], {attractors: [li], attractorDistance:0.2, snatchDistance: 2});





Revision as of 10:41, 26 January 2012

The underlying JavaScript code