Line

From JSXGraph Wiki
Revision as of 15:34, 17 September 2008 by 84.147.109.150 (talk) (New page: == Construction of a line == A line needs two points. Lets construct two points "A" and "B". <source lang="javascript"> var b = JXG.JSXGraph.initBoard('jxgbox', {originX: 200, originY: 100, unitX...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Construction of a line

A line needs two points. Lets construct two points "A" and "B".

 var b = JXG.JSXGraph.initBoard('jxgbox', {originX: 200, originY: 100, unitX: 50, unitY: 50});
 var p1 = board.createElement('point',[-1,1], {name:'A',style:6});
 var p2 = board.createElement('point',[2,-1], {name:'B',style:6});