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

implement EuclideanDistance for MultiPolygon to Line and Line to MultiPolygon #227

Merged
merged 3 commits into from
May 16, 2018

Conversation

JivanRoquet
Copy link
Contributor

@JivanRoquet JivanRoquet commented May 15, 2018

Implements the EuclideanDistance trait for the two following cases:

impl<T> EuclideanDistance<T, MultiPolygon<T>> for Line<T> { .. }
impl<T> EuclideanDistance<T, Line<T>> for MultiPolygon<T> { .. }

The test is not opinionated about the actual value being computed. It's only checking that the distance between the Line and the MultiPolygon is equal to the distance between the Line and the actual closest Polygon from this line.

More opinionated tests (aka, testing for real values) will be added once urschrei@90dee9d is merged, as this PR depends on this commit for its results.

@urschrei
Copy link
Member

Looks good to me!

@JivanRoquet
Copy link
Contributor Author

@urschrei not surprisingly, our two commits went in conflict.

Nothing serious though, it should be fixed by now.

@urschrei
Copy link
Member

bors r=urschrei

bors bot added a commit that referenced this pull request May 16, 2018
227: implement EuclideanDistance for MultiPolygon to Line and Line to MultiPolygon r=urschrei a=JivanRoquet

Implements the `EuclideanDistance` trait for the two following cases:

```rust
impl<T> EuclideanDistance<T, MultiPolygon<T>> for Line<T> { .. }
impl<T> EuclideanDistance<T, Line<T>> for MultiPolygon<T> { .. }
```

The test is not opinionated about the actual value being computed. It's only checking that the distance between the `Line` and the `MultiPolygon` is equal to the distance between the `Line` and the actual closest `Polygon` from this line.

More opinionated tests (aka, testing for real values) will be added once urschrei@90dee9d is merged, as this PR depends on this commit for its results.

Co-authored-by: Jivan Roquet <jivan.roquet@gmail.com>
@bors
Copy link
Contributor

bors bot commented May 16, 2018

Build succeeded

@bors bors bot merged commit 04d974f into georust:master May 16, 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.

3 participants