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 q = board.create('point', [-4, -2], {name:'q'});
+
var r = board.create('point', [-4, -2], {name:'q'});
var q1 = board.create('point', [-1.5, -2.5], {name:'', color: 'blue'});
+
var r1 = board.create('point', [-1.5, -2.5], {name:'', color: 'blue'});
var q2 = board.create('point', [-1.5, -1.7], {name:'', color: 'blue'});
+
var r2 = board.create('point', [-1.5, -1.7], {name:'', color: 'blue'});
 
+
var r2 = board.create('point', [-1.5, 0], {name:'', color: 'blue'});
 +
/*
 
var l1 = board.create('line', [q, q1], {straightFirst: false});
 
var l1 = board.create('line', [q, q1], {straightFirst: false});
 
var l2 = board.create('line', [q, q2], {straightFirst: false});
 
var l2 = board.create('line', [q, q2], {straightFirst: false});
Line 14: Line 15:
 
var p1 = board.create('glider', [-1, -2, l1], {name:'p_1'});
 
var p1 = board.create('glider', [-1, -2, l1], {name:'p_1'});
 
var p3 = board.create('glider', [3, -2, l1], {name:'p_3'});
 
var p3 = board.create('glider', [3, -2, l1], {name:'p_3'});
 +
*/
 
</jsxgraph>
 
</jsxgraph>
  

Revision as of 22:04, 2 May 2021

The underlying JavaScript code