Circle approximation: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 15: Line 15:
   this.dataY = [p1.Y()];
   this.dataY = [p1.Y()];
   ptmp.setPositionDirectly(JXG.COORDS_BY_USER,p1.X(),p1.Y());
   ptmp.setPositionDirectly(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 21: Line 20:
     this.dataY.push(ptmp.Y());
     this.dataY.push(ptmp.Y());
   }
   }
*/
}
}
</jsxgraph>
</jsxgraph>

Revision as of 09:20, 24 June 2009

The underlying JavaScript code