Circular arc approximation by cubic Bezier curve: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 17: | Line 17: | ||
d = Math.sqrt((ax+bx)*(ax+bx) + (ay+by)*(ay+by)); | d = Math.sqrt((ax+bx)*(ax+bx) + (ay+by)*(ay+by)); | ||
if (Math.abs(by-ay)>JXG.Math.eps) { | if (false && Math.abs(by-ay)>JXG.Math.eps) { | ||
return (ax+bx)*(r/d-0.5)*8.0/3.0/(by-ay); | return (ax+bx)*(r/d-0.5)*8.0/3.0/(by-ay); | ||
} else { | } else { |