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

Dumb down RangeOnPath #1094

Merged
merged 8 commits into from
Sep 15, 2022
Merged

Dumb down RangeOnPath #1094

merged 8 commits into from
Sep 15, 2022

Conversation

hannobraun
Copy link
Owner

Simplify RangeOnPath and concentrate all the complexity regarding ranges in one function. This feels less error-prone to me, as the caller of the API can't do anything wrong any more. Also, it seems to fix a bug I'm observing in a local branch, where approximated points were in the wrong direction (although I don't know what that bug was specifically; I do know this change fixes it).

Prepare it for further additions.
The previous implementation didn't actually use the full number of
vertices to approximate the circle, discarding the last one.
This is going to make a following change easier.
It seems less error-prone to me, to dumb down `RangeOnPath` and handle
range direction in `PathApproxParams::points`.
It has been dumbed down so much, that the API it still had no longer
made sense.
@hannobraun hannobraun merged commit 47c0830 into main Sep 15, 2022
@hannobraun hannobraun deleted the path branch September 15, 2022 18:17
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

Successfully merging this pull request may close these issues.

1 participant