Skip to content

360 loop using Arc #15

@nebuil

Description

@nebuil

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions