Tangents on circle: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) 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 = | t = brd.createElement('tangent', [c,p], {name:'polar'}); | ||
i1 = | i1 = brd.createElement('intersection', [c,t,0],{visible:false}); | ||
i2 = | i2 = brd.createElement('intersection', [c,t,1],{visible:false}); | ||
t1 = | t1 = brd.createElement('tangent', [c,i1]); | ||
t2 = | t2 = brd.createElement('tangent', [c,i2]); | ||
</jsxgraph> | </jsxgraph> | ||