Tape measure

From JSXGraph Wiki
Revision as of 11:34, 14 March 2013 by A WASSERMANN (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The JavaScript code

var board = JXG.JSXGraph.initBoard('box', {boundingbox: [-1,3,3,-1], axis:true});
var p1 = board.create('point', [0,0]);
var p2 = board.create('point', [1,1]);
var p3 = board.create('point', [2,1]);
var tape = board.create('tapemeasure', [[0, 2], [2, 2]], {name:'dist'});

[[Category::Examples]] [[Category::Geometry]]