Circle inversion: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 1: Line 1:
<jsxgraph width="600" height="600">
<jsxgraph width="600" height="600">
brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5]});
brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5]});
m = brd.create('point',[0.5,0.3]);
var m = brd.create('point',[0.5,0.3]);
b = brd.create('point',[3,0]);
var b = brd.create('point',[3,0]);
c = brd.create('circle',[m,b]);
var c = brd.create('circle',[m,b]);
p = brd.create('point',[-4,2]);
var p = brd.create('point',[-4,2]);


// If p is not on c, the tangent is the polar.
// If p is not on c, the tangent is the polar.
t = brd.create('tangent', [c,p], {name:'polar', withLabel:true, strokeColor:'gray'});  
var t = brd.create('tangent', [c,p], {name:'polar', withLabel:true, strokeColor:'gray', dash:2});
var l = brd.create('line', [m,p], {name:'', withLabel:false, strokeColor:'gray', dash:2});  


i1 = brd.create('intersection', [c,t,0],{visible:false});
i2 = brd.create('intersection', [c,t,1],{visible:false});
</jsxgraph>
</jsxgraph>



Revision as of 16:30, 21 April 2010

The underlying JavaScript code