Intersection of circles: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
}); | }); | ||
var c1 = board.create('circle', [[-1, | var c1 = board.create('circle', [[-1, 1.5], 3]); | ||
var c2 = board.create('circle', [[1, - | var c2 = board.create('circle', [[1, -1.5], 3]); | ||
var clip = board.create('curveintersection', [c1, c2], | |||
var | { strokeWidth: 2, fillColor: 'yellow', fillOpacity: 0.3 }); | ||
</jsxgraph> | </jsxgraph> | ||
Line 22: | Line 15: | ||
<source lang="javascript"> | <source lang="javascript"> | ||
var board = JXG.JSXGraph.initBoard('jxgbox', { | |||
axis:true, | |||
boundingbox:[-5, 5, 5, -5] | |||
}); | |||
var c1 = board.create('circle', [[-1, 1.5], 3]); | |||
var c2 = board.create('circle', [[1, -1.5], 3]); | |||
var clip = board.create('curveintersection', [c1, c2], | |||
{ strokeWidth: 2, fillColor: 'yellow', fillOpacity: 0.3 }); | |||
</source> | </source> | ||
[[Category:Examples]] | [[Category:Examples]] | ||
[[Category:Geometry]] | [[Category:Geometry]] |
Latest revision as of 18:46, 18 July 2024
The underlying JavaScript code
var board = JXG.JSXGraph.initBoard('jxgbox', {
axis:true,
boundingbox:[-5, 5, 5, -5]
});
var c1 = board.create('circle', [[-1, 1.5], 3]);
var c2 = board.create('circle', [[1, -1.5], 3]);
var clip = board.create('curveintersection', [c1, c2],
{ strokeWidth: 2, fillColor: 'yellow', fillOpacity: 0.3 });