Desargues's theorem: Difference between revisions

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


var r = board.create('point', [-4, -2], {name:'q'});
var r = board.create('point', [-4, -2], {name:'r'});
var r1 = board.create('point', [-1.5, -2.5], {name:'', color: 'blue'});
var r1 = board.create('point', [-1.5, -2.5], {name:'', color: 'blue'});
var r2 = board.create('point', [-1.5, -1.7], {name:'', color: 'blue'});
var r2 = board.create('point', [-1.5, -1.7], {name:'', color: 'blue'});
Line 24: Line 24:
var s3 = board.create('segment', [p2, p3], {color: 'red'});
var s3 = board.create('segment', [p2, p3], {color: 'red'});


var par1 = board.create('parallel', [s1, q3], {color: 'black'});
var par1 = board.create('parallel', [s1, q1], {color: 'black'});
var par2 = board.create('parallel', [s2, q3], {color: 'black'});
var par2 = board.create('parallel', [s2, q1], {color: 'black'});





Revision as of 20:10, 2 May 2021

The underlying JavaScript code