Skip to content

Commit

Permalink
Reverts unneeded change.
Browse files Browse the repository at this point in the history
  • Loading branch information
denis2glez committed Dec 10, 2021
1 parent 93063a0 commit 27360ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions geo/src/algorithm/is_convex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,13 @@ where

// Now we have a fixed orientation expected at the rest
// of the coords. Loop to check everything matches it.
if !((i + 1)..n)
if ((i + 1)..n)
.map(orientation_at)
.any(|(_, orientation)| match orientation {
.find(|&(_, orientation)| match orientation {
Orientation::Collinear => !allow_collinear,
orientation => orientation != first_non_collinear,
})
.is_none()
{
Some(first_non_collinear)
} else {
Expand Down

0 comments on commit 27360ec

Please sign in to comment.