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

New example: Geographical distance #531

Merged
merged 1 commit into from
Aug 10, 2024
Merged

New example: Geographical distance #531

merged 1 commit into from
Aug 10, 2024

Conversation

sharkdp
Copy link
Owner

@sharkdp sharkdp commented Aug 10, 2024

Compute the geographical distance between two points on
Earth's surface using Vincenty's formulae, which are accurate
to sub-millimeter precision.

This example uses the new fixed_point function from #530

@irevoire FYI: This is something I wanted to do for a long time, but couldn't — due to the lack of local variables (take a look at step_λ in the example, which needs to be passed to fixed_point).

@sharkdp sharkdp merged commit 7bc27bb into master Aug 10, 2024
15 checks passed
@sharkdp sharkdp deleted the geographic-distance branch August 10, 2024 19:58
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