Sutherland-Hodgman polygon clipping: Difference between revisions

Content added Content deleted
Line 1,769: Line 1,769:
s = inputList[inputList.length - 1]; //last on the input list
s = inputList[inputList.length - 1]; //last on the input list
for (var i in inputList) {
for (var i in inputList) {
var e = inputList[i];
e = inputList[i];
if (inside(e)) {
if (inside(e)) {
if (!inside(s)) {
if (!inside(s)) {