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

Remove pythagorean distance #28

Merged
merged 3 commits into from
Mar 6, 2018

Conversation

moveson
Copy link
Contributor

@moveson moveson commented Nov 20, 2017

This PR removes Segment#pythagorean_distance and TrackPoint#pythagorean_distance_from methods and one related test. It also adds two additional tests to the two remaining distance calculation methods (#haversine_distance_from and #law_of_cosines_distance_from) to ensure those methods work properly over distances spanning on the order of 100 km.

The PR also includes a bit of code formatting cleanup in the remaining distance methods (removing semicolons from line ends, making spacing consistent, and removing redundant return values).

This PR addresses Issue #27.

@moveson
Copy link
Contributor Author

moveson commented Mar 6, 2018

Do you plan on merging this PR?

@andrewhao
Copy link
Collaborator

Hi @moveson - thanks for your work! My apologies as I haven't had time to review this yet. I'll have a look now.

@andrewhao
Copy link
Collaborator

LGTM - I'm going to merge, then bump to a new minor version for breaking API changes. Thank you for your work!

@andrewhao andrewhao merged commit 0baed2c into dougfales:master Mar 6, 2018
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.

2 participants