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

azimuthToBearing helper #2399

Closed
basvdijk opened this issue Feb 17, 2023 · 2 comments
Closed

azimuthToBearing helper #2399

basvdijk opened this issue Feb 17, 2023 · 2 comments
Labels

Comments

@basvdijk
Copy link

Is there a particular reason why Turf currently has a bearingToAzimuth helper but not the other way around in the form of azimuthToBearing?

@stebogit
Copy link
Collaborator

@basvdijk I think it is just because Turf mostly uses bearing angles internally, therefore a "normalizing" helper was useful. An "inverse" azimuthToBearing helper could be useful as well, feel free to push a PR to add that if you wish.

@basvdijk
Copy link
Author

basvdijk commented Mar 9, 2023

@stebogit I've implemented the function and create a PR #2410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants