Difference between revisions of "Circular arc approximation by cubic Bezier curve"

From JSXGraph Wiki
Jump to navigationJump to search
Line 16: Line 16:
 
     r = M.Dist(A);
 
     r = M.Dist(A);
 
     d = Math.sqrt((ax+bx)*(ax+bx) + (ay+by)*(ay+by));
 
     d = Math.sqrt((ax+bx)*(ax+bx) + (ay+by)*(ay+by));
     if (JXG.Math.rad(A,M,B)>Math.PI) { d *= 1; }
+
     if (JXG.Math.Gemetry.rad(A,M,B)>Math.PI) { d *= 1; }
  
 
     if (Math.abs(by-ay)>JXG.Math.eps) {
 
     if (Math.abs(by-ay)>JXG.Math.eps) {

Revision as of 14:52, 1 July 2012

The underlying JavaScript code