Difference between revisions of "Orthogonal axis affinity"

From JSXGraph Wiki
Jump to navigationJump to search
Line 14: Line 14:
 
var g = board.create('parallel', [B, board.defaultAxes.x]);
 
var g = board.create('parallel', [B, board.defaultAxes.x]);
  
var P = board.create('intersection', [li, k1, 0], {name: 'P'});
+
var P = board.create('intersection', [li, k1, 0], {name: 'P',  trace: true});
 
var gs = board.create('parallel', [P, board.defaultAxes.y]);
 
var gs = board.create('parallel', [P, board.defaultAxes.y]);
 
var X = board.create('intersection', [gs, board.defaultAxes.x, 0], {name: 'X'});
 
var X = board.create('intersection', [gs, board.defaultAxes.x, 0], {name: 'X'});
var Ps = board.create('intersection', [gs, g, 0], {name: "P'"});
+
var Ps = board.create('intersection', [gs, g, 0], {name: "P'", trace: true, color: 'blue'});
  
 
</jsxgraph>
 
</jsxgraph>

Revision as of 20:02, 27 June 2021

The underlying JavaScript code