Difference between revisions of "Trigonometric functions"

From JSXGraph Wiki
Jump to navigationJump to search
Line 6: Line 6:
 
var p0 = brd.createElement('point',[0,0],{fixed:true,visible:false});
 
var p0 = brd.createElement('point',[0,0],{fixed:true,visible:false});
 
var p1 = brd.createElement('point',[1,0],{});
 
var p1 = brd.createElement('point',[1,0],{});
var c = brd.createElement('circle',[p0,p1],{dash:2});
+
var c = brd.createElement('circle',[p0,p1],{dash:2,strokeWidth:1,strokeOpacity:0.6});
var p2 = brd.createElement('glider',[0.4,1.0,c],{});
+
var p2 = brd.createElement('glider',[0.4,1.0,c],{name:'',withLabel:false});
var p3 = brd.createElement('point',[function(){return p2.X();},0.0],{});
+
var p3 = brd.createElement('point',[function(){return p2.X();},0.0],{visible:false,name:'',withLabel:false});
var p4 = brd.createElement('point',[0.0,function(){return p2.Y();}],{});
+
var p4 = brd.createElement('point',[0.0,function(){return p2.Y();}],{visible:false,name:'',withLabel:false});
  
 
brd.createElement('line',[p0,p2],{straightFirst:false,straightLast:false});
 
brd.createElement('line',[p0,p2],{straightFirst:false,straightLast:false});
Line 16: Line 16:
  
 
var t = brd.createElement('tangent',[p2],{visible:false});
 
var t = brd.createElement('tangent',[p2],{visible:false});
var p5 = brd.createElement('point',[brd.intersectionFunc(t,ax,0)],{});
+
var p5 = brd.createElement('point',[brd.intersectionFunc(t,ax,0)],{visible:false,name:'',withLabel:false});
var p6 = brd.createElement('point',[brd.intersectionFunc(t,ay,0)],{});
+
var p6 = brd.createElement('point',[brd.intersectionFunc(t,ay,0)],{visible:false,name:'',withLabel:false});
 
brd.createElement('line',[p5,p6],{straightFirst:false,straightLast:false});
 
brd.createElement('line',[p5,p6],{straightFirst:false,straightLast:false});
  

Revision as of 17:06, 11 June 2009