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

Add Polygon-Polygon containment predicate and tests #159

Merged
merged 2 commits into from
Sep 10, 2017

Conversation

urschrei
Copy link
Member

@urschrei urschrei commented Sep 7, 2017

No description provided.

{
fn contains(&self, poly: &Polygon<T>) -> bool {
// decompose poly's exterior ring into Lines, and check each for containment
poly.exterior.0.windows(2).all(|line| {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should maybe add a lines_iter on LineString that returns a Box<Iterator<Item=Line>> or something of the like

Nevermind, I already wrote it :D #160

@frewsxcv
Copy link
Member

🎊 🎊 🎊 🎊 🎊

bors r+

bors bot added a commit that referenced this pull request Sep 10, 2017
159: Add Polygon-Polygon containment predicate and tests r=frewsxcv a=urschrei
@bors
Copy link
Contributor

bors bot commented Sep 10, 2017

Build succeeded

@bors bors bot merged commit cb0e192 into georust:master Sep 10, 2017
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