Difference between revisions of "Magnetized points"

From JSXGraph Wiki
Jump to: navigation, search
Line 3: Line 3:
 
   li = brd.create('line', [1,2,3]),
 
   li = brd.create('line', [1,2,3]),
 
   ci = brd.create('circle', [[2,2],1]),
 
   ci = brd.create('circle', [[2,2],1]),
   p = brd.create('point', [-2,-2], {attractors: [li,ci], attractorDistance:0.2, snatchDistance: 2});
+
  p0 = brd.create('point', [-2,0]),
 +
   p = brd.create('point', [-2,-2], {attractors: [li,ci,p0], attractorDistance:0.2, snatchDistance: 2});
  
  

Revision as of 12:44, 26 January 2012

The underlying JavaScript code