# Difference between revisions of "Triangle axiom - affine space II"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 36: | Line 36: | ||

var pq = board.create('arrow', [p, q], {withLabel: true, name:'\\(\\vec{v}\\)', label:{position: 'top', parse: false}, lastArrow: {type: 4, size: 8}}); | var pq = board.create('arrow', [p, q], {withLabel: true, name:'\\(\\vec{v}\\)', label:{position: 'top', parse: false}, lastArrow: {type: 4, size: 8}}); | ||

− | var qr = board.create('arrow', [q, r], { | + | var qr = board.create('arrow', [q, r], {}); |

var pr = board.create('arrow', [p, r], {withLabel: true, name:'\\(\\vec{w}\\)', label:{position: 'top'}, lastArrow: {type: 4, size: 8}}); | var pr = board.create('arrow', [p, r], {withLabel: true, name:'\\(\\vec{w}\\)', label:{position: 'top'}, lastArrow: {type: 4, size: 8}}); | ||

</source> | </source> | ||

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

[[Category:Geometry]] | [[Category:Geometry]] |

## Latest revision as of 12:16, 12 April 2021

Axiom (A2) "triangle rule" for affine spaces.

### The underlying JavaScript code

```
JXG.Options.label.autoPosition = true;
JXG.Options.text.useMathJax = true;
JXG.Options.text.fontSize = 20;
var board = JXG.JSXGraph.initBoard("jxgbox", {boundingbox: [-5,5,5,-5], showCopyright:false, showNavigation:false});
var p = board.create('point', [-3,-3], {name:'p'});
var q = board.create('point', [0, 2], {name:'q'});
var r = board.create('point', [3, -3], {name:'r'});
var pq = board.create('arrow', [p, q], {withLabel: true, name:'\\(\\vec{v}\\)', label:{position: 'top', parse: false}, lastArrow: {type: 4, size: 8}});
var qr = board.create('arrow', [q, r], {});
var pr = board.create('arrow', [p, r], {withLabel: true, name:'\\(\\vec{w}\\)', label:{position: 'top'}, lastArrow: {type: 4, size: 8}});
```