Circle approximation: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) 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> |