I have searched a lot about this.Like how-to-create-circle-with-bézier-curves, how-to-best-approximate-a-geometrical-arc-with-a-bezier-curve etc. But all seems to me as arbitrary approximation of Arc to bezier curve. Thanks
Asked
Active
Viewed 307 times
1
-
It is mathematically impossible to make a circular arc with a Bezier curve, no matter how high-order you pick the curve (because the sinoid function cannot be expressed as a finite polynomial). So it's not "arbitrary": if you need to convert from an arc to a Bezier curve, you literally **have** to approximate the former with the latter. So you end up [having to read up on things like this](https://pomax.github.io/bezierinfo/#circles_cubic). – Mike 'Pomax' Kamermans Mar 19 '18 at 23:38
-
@Mike'Pomax'Kamermans thanks, your article is awesome, appreciative . I have gone through it. It will be really helpful if you put one example here or there ( approximating an arc to cubic bezier).I am still hesitate to write code as my math is not as good as needed :-) . – CodeWithVikas Apr 02 '18 at 12:29
-
@Mike'Pomax'Kamermans in below section of the article, i have one doubt https://pomax.github.io/bezierinfo/#aligning how you got the expression after rotation( translation is pretty clear to me that we did minus with same value). But with what value we did rotation and how – CodeWithVikas Apr 02 '18 at 12:35
-
1after translating, you can compute the angle that your baseline (start--end) makes with the x-axis using the `atan2` function that pretty much all programming languages come with. If that angle is `a`, then you can now rotate all points around (0,0) by `-a`, which rotates everything so that it aligns with the x-axis You don't *have* to do this, but it makes the maths incredibly much easier. – Mike 'Pomax' Kamermans Apr 02 '18 at 17:15