A trangle geometric shape

						var board = JXG.JSXGraph.initBoard('box1', {
axis: true, boundingbox: [-15, 15, 15, -15], showcopyright: false,keepaspectratio: true, axis: false, zoom: false,showNavigation: false
  });
  
var p1 = board.create('point', [-11, -4],{name:'A', size: 1,face:"",fixed: true, color:'blue', label: {offset:[-5,-10], color:'blue'}} );
var p2 = board.create('point', [-1, -4],{name:'B', size: 1,face:"", color:'blue', fixed: true,label: {offset:[-5,-10], color:'blue'}} );

var p3 = board.create('point', [11, 1],{name:'C', size: 1,face:"", color:'blue',fixed: true, label: {offset:[-5,-10], color:'blue'}} );

var p4 = board.create('point', [-5, 1],{name:'D', size: 1,face:"", color:'blue', fixed: true,label: {offset:[0,-10], color:'blue'}} );

var l1 = board.create('segment', [p1, p2],{strokeWidth:2});
var l2 = board.create('segment', [p2,p3],{strokeWidth:2});
var l3 = board.create('segment', [p3,p4],{strokeWidth:2,dash: 2});
var l4 = board.create('segment', [p4,p1],{strokeWidth:2,dash: 2});

var p5 = board.create('point', [-8, 13],{name:'P', size: 1,face:"", color:'blue', fixed: true,label: {offset:[10,10], color:'blue'}} );

var l5 = board.create('segment', [p5,p1],{strokeWidth:2});
var l6 = board.create('segment', [p5,p4],{strokeWidth:2,dash: 2});
var l7 = board.create('segment', [p5,p2],{strokeWidth:2});
var l8 = board.create('segment', [p5,p3],{strokeWidth:2});

var mp1 = board.create('midpoint', [p2, p5],{name:'E', size: 1,face:"", color:'blue', label: {offset:[5,10], color:'blue'}} );

var Inpt = [[p3, p4],["F"],{d:12}];

var pl1 =  board.create('pointofline',Inpt,{line:{strokeColor:'blue'},point:{size:1,label:{offset:[10,-10]}}});

var mp2 = board.create('midpoint', [p1, p4],{name:'H', size: 1,face:"", color:'blue', label: {offset:[10,0], color:'blue'}} );
var l9 = board.create('segment', [p5,mp2],{strokeWidth:2,dash: 2});

var l10 = board.create('segment', [pl1.F,mp1],{strokeWidth:2,dash: 2});
var l11 = board.create('segment', [pl1.F,p2],{strokeWidth:2,dash: 2});

var l12 = board.create('segment', [mp1,p3],{strokeWidth:2,dash: 2});					

The image appears in the following posts

Triangle posted 2 years ago

Scroll to Top