Locus computation: Difference between revisions
From JSXGraph Wiki
No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<jsxgraph width="600" height="600"> | <jsxgraph width="600" height="600"> | ||
JXG.serverBase = ' | JXG.serverBase = 'https://jsxgraph.org/distrib/server/'; | ||
board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-2, 20, 20, -2], axis: true, grid: false, keepaspectratio: true}); | board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-2, 20, 20, -2], axis: true, grid: false, keepaspectratio: true}); | ||
p3 = board. | p3 = board.create('point', [8, 3]); | ||
p4 = board. | p4 = board.create('point', [8, 8]); | ||
c1 = board. | c1 = board.create('circle', [p4, 4]); | ||
p6 = board. | p6 = board.create('glider', [0, 0, c1], {name:"D"}); | ||
g = board. | g = board.create('line', [p3, p6]); | ||
c2 = board. | c2 = board.create('circle', [p6, 3]); | ||
p14_1 = board. | p14_1 = board.create('intersection', [c2,g,0], {name: "T"}); | ||
loc = board. | loc = board.create('locus', [p14_1], {strokeColor: 'red', strokeWidth: 1}); | ||
</jsxgraph> | </jsxgraph> | ||
===The underlying JavaScript code=== | ===The underlying JavaScript code=== | ||
<source lang="javascript"> | <source lang="javascript"> | ||
JXG.serverBase = ' | JXG.serverBase = 'https://jsxgraph.org/distrib/server/'; | ||
board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-2, 20, 20, -2], axis: true, grid: false, keepaspectratio: true}); | board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-2, 20, 20, -2], axis: true, grid: false, keepaspectratio: true}); | ||
p3 = board. | p3 = board.create('point', [8, 3]); | ||
p4 = board. | p4 = board.create('point', [8, 8]); | ||
c1 = board. | c1 = board.create('circle', [p4, 4]); | ||
p6 = board. | p6 = board.create('glider', [0, 0, c1], {name:"D"}); | ||
g = board. | g = board.create('line', [p3, p6]); | ||
c2 = board. | c2 = board.create('circle', [p6, 3]); | ||
tracer = board. | tracer = board.create('intersection', [c2,g,0], {name: "T"}); | ||
loc = board. | loc = board.create('locus', [tracer], {strokeColor: 'red', strokeWidth: 1}); | ||
</source> | </source> | ||
[[Category: | [[Category:Old]] | ||
Latest revision as of 12:53, 18 October 2024
The underlying JavaScript code
JXG.serverBase = 'https://jsxgraph.org/distrib/server/';
board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-2, 20, 20, -2], axis: true, grid: false, keepaspectratio: true});
p3 = board.create('point', [8, 3]);
p4 = board.create('point', [8, 8]);
c1 = board.create('circle', [p4, 4]);
p6 = board.create('glider', [0, 0, c1], {name:"D"});
g = board.create('line', [p3, p6]);
c2 = board.create('circle', [p6, 3]);
tracer = board.create('intersection', [c2,g,0], {name: "T"});
loc = board.create('locus', [tracer], {strokeColor: 'red', strokeWidth: 1});