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

360 loop using Arc #15

Open
nebuil opened this issue Sep 10, 2012 · 1 comment
Open

360 loop using Arc #15

nebuil opened this issue Sep 10, 2012 · 1 comment

Comments

@nebuil
Copy link

nebuil commented Sep 10, 2012

I have tried to go from degree 0 to 360, or from 0 to 0, using dir: -1 and it doesn't work, and same issue trying to go from degree 360 to 0, or from 0 to 0, using dir: 1. I have solved it just modifying following lines, adding equal (=) to the comparisons:

while ( this.start >= this.end && this.dir > 0 ) {
  this.start -= 360;
}

while ( this.start <= this.end && this.dir < 0 ) {
  this.start += 360;
}
@weepy
Copy link
Owner

weepy commented May 7, 2016

can you make this into a pull request ?

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