Skip to content

Commit

Permalink
bug in is simple quad; simple quads should have crossTF = 0, 2, or 4,…
Browse files Browse the repository at this point in the history
… and complex otherwise
  • Loading branch information
cjekel committed Dec 20, 2019
1 parent 53c383c commit 27876eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion similaritymeasures/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.0
0.4.1
2 changes: 2 additions & 0 deletions similaritymeasures/similaritymeasures.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def is_simple_quad(ab, bc, cd, da):
crossTF = cross <= 0
if sum(crossTF) == 2:
return True
elif sum(crossTF) == 4:
return True
else:
return False

Expand Down

0 comments on commit 27876eb

Please sign in to comment.