Difference between revisions of "Circle approximation"

From JSXGraph Wiki
Jump to navigationJump to search
Line 15: Line 15:
 
   this.dataY = [p1.Y()];
 
   this.dataY = [p1.Y()];
 
   ptmp.setPosition(JXG.COORDS_BY_USER,p1.X(),p1.Y());
 
   ptmp.setPosition(JXG.COORDS_BY_USER,p1.X(),p1.Y());
 +
/*
 
   for (i=0;i<n.Value();i++) {
 
   for (i=0;i<n.Value();i++) {
 
     rot.applyOnce(ptmp);
 
     rot.applyOnce(ptmp);
Line 20: Line 21:
 
     this.dataY.push(ptmp.Y());
 
     this.dataY.push(ptmp.Y());
 
   }
 
   }
 +
*/
 
}
 
}
 
</jsxgraph>
 
</jsxgraph>

Revision as of 11:19, 24 June 2009

The underlying JavaScript code