-
Notifications
You must be signed in to change notification settings - Fork 205
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
Adds GeodesicDestination
and GeodesicBearing
#991
Conversation
LGTM - but I'll leave it open a bit in case anyone else wants to comment.
Not in this pull request, but I wonder if in the future we should rename the |
assert_eq!(p_2, Point::new(9.27411867078536, 48.8403266058781)); | ||
|
||
let expected = Point::new(9.27411867078536, 48.8403266058781); | ||
assert_relative_eq!(p_2.x(), expected.x(), epsilon = 1.0e-6); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we've implemented some approx traits for Point, you should be able to just assert_relative_eq(p2, expected, epsilon = 1.e-6)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I didn't know that! Good catch. Fixed
bors r+ I'm going to merge this, and plan to include it in geo-0.24.0, which I'll plan to publish tomorrow unless I hear otherwise. |
Build succeeded: |
CHANGES.md
if knowledge of this change could be valuable to users.This adds the following:
GeodesicDestination
trait to complement theHaversineDestination
traitGeodesicBearing
trait to complement theBearing
traitGeodesicIntermediate
trait