Segments with fixed length

From JSXGraph Wiki
Revision as of 10:51, 26 January 2012 by A WASSERMANN (talk | contribs) (Created page with "<jsxgraph width="400" height="400" box="box"> var brd = JXG.JSXGraph.initBoard('box', {axis:false, boundingbox: [-5, 5, 5, -5]}), p0 = brd.create('point', [-2,0]), p1 = brd...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The underlying JavaScript code

var brd = JXG.JSXGraph.initBoard('box', {axis:false, boundingbox: [-5, 5, 5, -5]}),
   li = brd.create('line', [1,2,3]),
   ci = brd.create('circle', [[2,2],1]),
   p0 = brd.create('point', [-2,0], {color:'blue'}),
   p = brd.create('point', [-2,-2], {attractors: [li,ci,p0], attractorDistance:0.2, snatchDistance: 2});