Mutually dependent line and gliders: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 12: Line 12:
var gl1 = board.create('glider', [0,0, el0], {name:'b'});
var gl1 = board.create('glider', [0,0, el0], {name:'b'});
var gl2 = board.create('glider', [1,0, el1], {name:'a'});
var gl2 = board.create('glider', [1,0, el1], {name:'a'});
var line = board.create('line', [gl1,gl2]);
var line = board.create('line', [0,0,1]);


/*
var offset = gl2.Y() - gl1.Y();
var offset = gl2.Y() - gl1.Y();


Line 22: Line 23:
     offset = gl2.Y() - gl1.Y();
     offset = gl2.Y() - gl1.Y();
                 });
                 });
 
*/


</jsxgraph>
</jsxgraph>

Revision as of 07:52, 1 June 2012