Difference between revisions of "Rolling circle on circle"

From JSXGraph Wiki
Jump to navigationJump to search
(New page: <jsxgraph width="0" height="0" box="nix"></jsxgraph> <html> <script type="text/javascript" src="/~alfred/jsxgraph/trunk/src/Roulette.js"></script> <form> <input type="button" value="start"...)
 
Line 17: Line 17:
 
             {strokeWidth:6});
 
             {strokeWidth:6});
 
// Circle
 
// Circle
var P = brd.create('point',[4,0],{name:'P', trace:true});
+
var P = brd.create('point',[4,0],{name:'P', trace:false});
 
var C = brd.create('point',[2,0],{name:'C'});
 
var C = brd.create('point',[2,0],{name:'C'});
 
var circle = brd.create('curve',[
 
var circle = brd.create('curve',[
Line 30: Line 30:
  
 
// Point on circle
 
// Point on circle
var B = brd.create('glider',[0,2,circle],{name:'B', color:'blue',trace:false});
+
var B = brd.create('glider',[0,2,circle],{name:'B', color:'blue',trace:true});
 
brd.create('segment',[C,B],{color:'black'});  
 
brd.create('segment',[C,B],{color:'black'});  
 
brd.unsuspendUpdate();
 
brd.unsuspendUpdate();
var rol = JXG.Math.Numerics.createRoulette(bigCircle, circle, 0, Math.PI/20, 100, [C,P,B]);  
+
var rol = JXG.Math.Numerics.createRoulette(bigCircle, circle, 0, Math.PI/90, 50, [C,P,B]);  
  
 
</jsxgraph>
 
</jsxgraph>

Revision as of 16:20, 2 October 2010

The underlying JavaScript code