Tangents on circle: 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]});
brd.options.elements.color.strokeColor = 'red';
brd.options.elements.color.fillColor = 'red';
brd.options.elements.color.strokeOpacity = 0.8;
brd.options.elements.color.fillOpacity = 0.8;
m = brd.createElement('point',[0,0]);
m = brd.createElement('point',[0,0]);
b = brd.createElement('point',[3,0]);
b = brd.createElement('point',[3,0]);
Line 6: Line 11:
p = brd.createElement('point',[2,4]);
p = brd.createElement('point',[2,4]);


t = board.createElement('tangent', [c,p], {name:'polar'});  
t = brd.createElement('tangent', [c,p], {name:'polar'});  


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



Revision as of 13:38, 22 September 2009

The underlying JavaScript code