Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to create a arc with a start point and and end point with radius of R. #43

Open
ztdepztdep opened this issue Dec 16, 2022 · 1 comment

Comments

@ztdepztdep
Copy link

No description provided.

@ChenxingWang93
Copy link

hei

Let's assume the starting point is P_{0}, the ending point is P_{2}

if we still consider using 'rational Bezier' way to express an arc. One quadrant of the unit circle

C(u) = (x(u),y(u)) = (\frac{1-u^{2}}{1+u^{2}},\frac{2u}{1+u^{2}}) 0<=u<=1

Imagine! Please use your imagination. In your head P_{0} = (1, 0), P_{1} = (1, 1), P_{2} = (0, 1) For the weights we have

W(u) = 1 + u^{2} = \sum_{i=0}^{2}B_{i,2}(u)w_{i} = (1-u)^{2}w_{0}+2u(1-u)w_{1}+u^{2}w_{2}

So the Bezier representation
(w_{0} = 1, w_{1} = 1, w_{2} = 2)

:) not sure if helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants