Trace curve: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 9: Line 9:
var p = brd.create('polygon', [A, B, C]);
var p = brd.create('polygon', [A, B, C]);


var M1 = brd.create('midpoint', [A, B], {withLabel:false});
var s1 = brd.create('perpendicular', [p.borders[0], C], {dash:3, strokeWidth:1});
var M2 = brd.create('midpoint', [A, C], {withLabel:false});
var s2 = brd.create('perpendicular', [p.borders[1], A], {dash:3, strokeWidth:1});
var M3 = brd.create('midpoint', [B, C], {withLabel:false});
var s3 = brd.create('perpendicular', [p.borders[2], B], {dash:3, strokeWidth:1});
var s1 = brd.create('perpendicular', [p.borders[0], C], {dash:1, strokeWidth:1});
var s2 = brd.create('perpendicular', [p.borders[1], A], {dash:1, strokeWidth:1});
var s3 = brd.create('perpendicular', [p.borders[2], B], {dash:1, 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:true});
var curve = brd.create('trace', [C, S]);


</jsxgraph>
</jsxgraph>


[[Category:Examples]]
[[Category:Examples]]

Revision as of 12:01, 22 June 2012