Support material: refactoring

This commit is contained in:
Alessandro Ranellucci committed 2012-02-25 16:23:41 +01:00
1 parent a24ffee2aa
commit cc695c6c22
2 files changed
+29 -19

No files matched your search

+1
View File
@@ -295,6 +295,7 @@ sub polygon_has_vertex {
return 0;
}
# polygon must be simple (non complex) and ccw
sub polygon_is_convex {
my ($points) = @_;
for (my $i = 0; $i <= $#$points; $i++) {