Circle approximation: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 17: Line 17:
   for (i=0;i<n.Value();i++) {
   for (i=0;i<n.Value();i++) {
     rot.applyOnce(ptmp);
     rot.applyOnce(ptmp);
     this.dataX.push(ptmp.X()];
     this.dataX.push(ptmp.X());
     this.dataY.push(ptmp.Y());
     this.dataY.push(ptmp.Y());
   }
   }

Revision as of 09:17, 24 June 2009

12345−1−2−3−4−512345−1−2−3−4−5
n = 4.00
A
B

The underlying JavaScript code