Orthogonal axis affinity: Difference between revisions

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


var k0 = board.create('circle', [[0,0], 4], {fixed: true, strokeWidth: 0.8});
var O = board.create('point', [0,0], {name: 'O', fixed: true});
var O = board.create('point', [0,0], {name: 'O', fixed: true});
var B = board.create('glider', [2.8, 3, k0], {name: 'B'});
var k0 = board.create('circle', [O, 4], {fixed: true, strokeWidth: 0.8});
var k1 = board.create('circle', [0, 2], {fixed: true, strokeWidth: 0.8});
 
var B = board.create('glider', [2.65, 3, k0], {name: 'B'});
var li = board.create('line', [O, B], {straightFirst: false});
var li = board.create('line', [O, B], {straightFirst: false});
var g = board.create('parallel', [B, board.defaultAxes.x]);
var g = board.create('parallel', [B, board.defaultAxes.x]);

Revision as of 18:57, 27 June 2021

The underlying JavaScript code