Magnetized points: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 2: Line 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: 2});
  ci = brd.create('circle', [[2,2],1]),
   p = brd.create('point', [-2,-2], {attractors: [li,ci], attractorDistance:0.2, snatchDistance: 2});





Revision as of 10:42, 26 January 2012

The underlying JavaScript code