Drag Polygons

From JSXGraph Wiki
Revision as of 15:56, 20 February 2013 by A WASSERMANN (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

JavaScript Code

 var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-10, 10, 10, -10]});
 var a = brd.create('point', [-2, 1]);
 var b = brd.create('point', [-4, -5]);
 var c = brd.create('point', [3, -6]);
 var d = brd.create('point', [2, 3]);
 var p = brd.create('polygon', [a, b, c, d], {hasInnerPoints: true});