Menelaus's theorem: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 3: Line 3:
JXG.Options.text.fontSize = 24;
JXG.Options.text.fontSize = 24;


var board = JXG.JSXGraph.initBoard("jxgbox", {boundingbox: [-5,5,5,-5], showCopyright:false, showNavigation:false});
var board = JXG.JSXGraph.initBoard("jxgbox", {boundingbox: [-5,5,5,-5], axis:true, showCopyright:false, showNavigation:false});


var a = board.create('point', [-2, -2], {name:'a'});
var a = board.create('point', [-1.7, 0], {name:'a'});
var b = board.create('point', [4, -3], {name:'b'});
var b = board.create('point', [4, -3], {name:'b'});
var c = board.create('point', [1, 4], {name:'c'});
var c = board.create('point', [1, 4], {name:'c'});
Line 12: Line 12:
var s2 = board.create('segment', [c, b], {color: 'black'});
var s2 = board.create('segment', [c, b], {color: 'black'});
var s3 = board.create('line', [a, b], {color: 'black'});
var s3 = board.create('line', [a, b], {color: 'black'});
//var as = board.create('glider',


</jsxgraph>
</jsxgraph>

Revision as of 20:27, 2 May 2021

The underlying JavaScript code