Skip to content

Instantly share code, notes, and snippets.

@boboboa32
Created October 11, 2012 14:19
Show Gist options
  • Save boboboa32/3872668 to your computer and use it in GitHub Desktop.
Save boboboa32/3872668 to your computer and use it in GitHub Desktop.
polygon a = Polygon(4, v(0,0),v(0,3),v(3,3),v(3,0)), b = Polygon(4, v(4,4),v(4,6),v(6,6),v(6,4));
printf("%d\n", sat(a,b)); // false
a = Polygon(4, v(0,0),v(0,5),v(5,4),v(3,0)); b = Polygon(4, v(4,4),v(4,6),v(6,6),v(6,4));
printf("%d\n", sat(a,b)); // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment