# Difference between revisions of "Affine ratio"

From JSXGraph Wiki

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

Line 1: | Line 1: | ||

<jsxgraph width="500" height="500"> | <jsxgraph width="500" height="500"> | ||

JXG.Options.label.autoPosition = true; | JXG.Options.label.autoPosition = true; | ||

− | |||

JXG.Options.text.fontSize = 24; | JXG.Options.text.fontSize = 24; | ||

Line 10: | Line 9: | ||

var pq = board.create('segment', [p, q]); | var pq = board.create('segment', [p, q]); | ||

var t = board.create('glider', [-2, 0, pq], {name: 't'}); | var t = board.create('glider', [-2, 0, pq], {name: 't'}); | ||

− | var txt = board.create(text, [1, 2, function() { return "λ =" + t.position.toFixed(2); }]); | + | var txt = board.create('text', [1, 2, function() { return "λ =" + t.position.toFixed(2); }]); |

</jsxgraph> | </jsxgraph> | ||

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

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