Difference between revisions of "Menelaus's theorem"

From JSXGraph Wiki
Jump to navigationJump to search
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 21:27, 2 May 2021

The underlying JavaScript code