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

Implement d2xy, xy2d, d2xyz, xyz2d #7

Closed
abetusk opened this issue Feb 6, 2024 · 0 comments · Fixed by #8
Closed

Implement d2xy, xy2d, d2xyz, xyz2d #7

abetusk opened this issue Feb 6, 2024 · 0 comments · Fixed by #8

Comments

@abetusk
Copy link
Contributor

abetusk commented Feb 6, 2024

It would be nice to have stand alone conversion functions that convert from spatial dimensions to position along the curve (xy2d, xyz2d) and vice versa (d2xy, d2xyz).

As mentioned in #6, this should be possible in $O( \ln N )$ time (and $O(1)$ ish space).

I'm working on this now (here) and hope to issue a PR in the near future when I'm confident enough about the results.

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 a pull request may close this issue.

1 participant