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', [-6, 0],{name:'A', size: 1,face:"", color:'blue',fixed: true,label: {offset:[5,-10], color:'blue'}} );
var p2 = board.create('point', [-11, -5],{name:'B', size: 1,face:"", color:'blue', fixed: true,label: {offset:[-15,10], color:'blue'}} );

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

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

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

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

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

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

The image appears in the following posts

Triangle posted 2 years ago

Scroll to Top