Curly braces: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 16: Line 16:
     d[1] *= height/dl;
     d[1] *= height/dl;


     this.dataX = [ A.X(), A.X()+d[1]/dl, mid[0], mid[0]+d[1]/dl, mid[0], B.X()+d[1]/dl, B.X()];
     this.dataX = [ A.X(), A.X()+d[1], mid[0], mid[0]+d[1], mid[0], B.X()+d[1], B.X()];
     this.dataY = [ A.Y(), A.Y()-d[0]/dl, mid[1], mid[1]-d[0]/dl, mid[1], B.Y()-d[0]/dl, B.Y()];
     this.dataY = [ A.Y(), A.Y()-d[0], mid[1], mid[1]-d[0], mid[1], B.Y()-d[0], B.Y()];
};
};
brd.update();
brd.update();

Revision as of 12:51, 19 February 2013