Skip to content

Commit

Permalink
Update geo/src/algorithm/intersects/triangle.rs
Browse files Browse the repository at this point in the history
simpler to use  self.polygon()

Co-authored-by: Laurențiu Nicola <[email protected]>
  • Loading branch information
martinfrances107 and lnicola authored Oct 12, 2021
1 parent 4de4edc commit 7022dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geo/src/algorithm/intersects/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ where
Polygon<T>: Intersects<G>,
{
fn intersects(&self, rhs: &G) -> bool {
(*self).to_polygon().intersects(rhs)
self.to_polygon().intersects(rhs)
}
}
symmetric_intersects_impl!(Coordinate<T>, Triangle<T>);
Expand Down

0 comments on commit 7022dd3

Please sign in to comment.