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

[wip] First attempts at implementing Haversine distance #48

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Trying rounding again
  • Loading branch information
tmcw committed Aug 21, 2016
commit 0be988f8fb981c489af2527cd6af643accc99cc0
2 changes: 1 addition & 1 deletion src/algorithm/haversine_distance.rs
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ pub trait HaversineDistance<T, Rhs = Self>
///
/// let p = Point::new(-72.1235, 42.3521);
/// let dist = p.haversine_distance(&Point::new(-72.1260, 42.45));
/// assert_eq!(dist, 10900.115612674515)
/// assert_eq!(dist as i32, 10900)
/// ```
fn haversine_distance(&self, rhs: &Rhs) -> T;
}