A trangle geometric shape by Jsxgraph

var board = JXG.JSXGraph.initBoard('box1', {
boundingbox: [-8, 8, 8, -8],showNavigation:false, showcopyright: false, axis: false,
});
var p1 = board.create('point', [-7, -3.0],{face:'',fixed:true});
var p2 = board.create('point', [-3.5, -3.0],{face:'',fixed:true});
var p3 = board.create('point', [6.49, -3.0],{face:'',fixed:true});
var p4 = board.create('point', [2.45, 4.0],{face:'',fixed:true});
var l1 = board.create('segment', [p3, p2],);
var l2 = board.create('segment', [p3,p4],);
var l3 = board.create('segment', [p2,p4],);
var l4 = board.create('segment', [p2,p1],);
var a1 = board.create('angle', [p4, p2, p1],{name:"130°",label:{offset:[-10,0]}});
var a2 = board.create('angle', [p4, p3, p2],{name:"(x-10)°",label:{offset:[-35,5]}});
var a3 = board.create('angle', [p2, p4, p3],{name:"x"});
var t1 = board.create('text',[-1,-5,function(){var ang1 = a1.Value()/Math.PI*180;return "∠CAB = "+ang1.toFixed(0)+"°";}]);
var t2 = board.create('text',[-1,-6,function(){var ang2 = a2.Value()/Math.PI*180;return "∠EDF = "+ang2.toFixed(0)+"°";}]);			

Triangle posted 2 weeks ago

Scroll to Top