Circle inversion: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 4: Line 4:
var b = brd.create('point',[3,0]);
var b = brd.create('point',[3,0]);
var c = brd.create('circle',[m,b]);
var c = brd.create('circle',[m,b]);
var p = brd.create('point',[-4,2]);
var p = brd.create('point',[-4,2],{name:'P');


// If p is not on c, the tangent is the polar.
// If p is not on c, the tangent is the polar.
var t = brd.create('tangent', [c,p], {name:'polar', withLabel:true, strokeColor:'gray', dash:2});  
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});  
var l = brd.create('line', [m,p], {name:'', withLabel:false, strokeColor:'gray', dash:2});  
var s = brd.create('intersection', [l,s], {name:"p'", withLabel:true});  
var s = brd.create('intersection', [l,t], {name:"P'", withLabel:true});  
</jsxgraph>
</jsxgraph>



Revision as of 16:32, 21 April 2010

The underlying JavaScript code