# 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 24: | Line 24: | ||

}; | }; | ||

var P1 = brd.create('point', [ | var P1 = brd.create('point', [ | ||

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

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

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

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