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

Truthy / Falsy check breaks for a cubic bezier with the final point's x or y value being 0 #2

Closed
Rheeseyb opened this issue Feb 15, 2017 · 0 comments

Comments

@Rheeseyb
Copy link
Contributor

Inside function function Bezier(ax, ay, bx, by, cx, cy, dx, dy) there is the following check:
if(dx && dy) {
From my understanding, this was included so that the function could be used for quadratic curves (i.e. the "Q" and "q" commands), but results in undesired behaviour if specifying a cubic bezier with a zero for either of those values

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