Skip to content

Commit

Permalink
Fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Aug 23, 2023
1 parent b91678b commit 4ef4b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ impl Polygon {
return false;
}

let mut contains: bool = true;
let mut contains: bool = false;
let mut i: usize = 0;
for hole in self.holes.iter() {
let tr = self.holes_rtree.get(i).unwrap();
if rings_contains_point_by_rtree_index(&hole, &tr, p, false) {
contains = false;
contains = true;
break;
}

Expand Down

0 comments on commit 4ef4b53

Please sign in to comment.