Trace curve: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 6: Line 6:
var g = brd.create('line', [A,B], {visible:false});
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', [-1.5, 1.0, h], {name:'C'});
var p = brd.create('polygon', [A, B, C]);
var p = brd.create('polygon', [A, B, C]);


Line 13: Line 13:
var s3 = brd.create('perpendicular', [p.borders[2], B], {dash:3, strokeWidth:1});
var s3 = brd.create('perpendicular', [p.borders[2], B], {dash:3, strokeWidth:1});


var S = brd.create('intersection', [s1, s2, 0], {name:'S', trace:true});
var S = brd.create('intersection', [s1, s2, 0], {name:'S', trace:false});
var curve = brd.create('tracecurve', [C, S]);
var curve = brd.create('tracecurve', [C, S]);



Revision as of 12:02, 22 June 2012