Difference between revisions of "Desargues's theorem"

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

The underlying JavaScript code