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

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 25: | Line 25: | ||

function(){ return M.X()+A.X()-k(M,A,B)*(A.Y()-M.Y()); }, | function(){ return M.X()+A.X()-k(M,A,B)*(A.Y()-M.Y()); }, | ||

function(){ return M.Y()+A.Y()+k(M,A,B)*(A.X()-M.X()); } | function(){ return M.Y()+A.Y()+k(M,A,B)*(A.X()-M.X()); } | ||

+ | ], {}); | ||

+ | var P2 = brd.create('point', [ | ||

+ | function(){ return M.X()+B.X()+k(M,A,B)*(B.Y()-M.Y()); }, | ||

+ | function(){ return M.Y()+B.Y()-k(M,A,B)*(B.X()-M.X()); } | ||

], {}); | ], {}); | ||