Difference between revisions of "Trace curve"

From JSXGraph Wiki
Jump to navigationJump to search
Line 3: Line 3:
 
var A = brd.create('point', [-1.5, -1.5]);
 
var A = brd.create('point', [-1.5, -1.5]);
 
var B = brd.create('point', [1.5, -1.5]);
 
var B = brd.create('point', [1.5, -1.5]);
var C0 = brd.create('point', [1.5, 1.5], {visible:true});
+
var C0 = brd.create('point', [1.5, 1.5], {visible:false});
var g = brd.create('line', [A,B], {visible:true});
+
var g = brd.create('line', [A,B], {visible:false});
 
var h = brd.create('parallel', [g, C0], {visible:true});
 
var h = brd.create('parallel', [g, C0], {visible:true});
//var C = brd.create('glider', [[0, 1.5],h], {name:'C'});
+
var C = brd.create('glider', [0, 1.5, h], {name:'C'});
 +
var p = brd.create('polygon', [A, B, C]);
  
 
</jsxgraph>
 
</jsxgraph>
  
 
[[Category:Examples]]
 
[[Category:Examples]]

Revision as of 12:50, 22 June 2012