Jump to content

Sutherland-Hodgman polygon clipping: Difference between revisions

m
m (→‎{{header|Phix}}: IupCloseOnEscape no longer needed)
Line 1,763:
var outputList = subjectPolygon;
cp1 = clipPolygon[clipPolygon.length-1];
for (var j in clipPolygon) {
var cp2 = clipPolygon[j];
var inputList = outputList;
outputList = [];
s = inputList[inputList.length - 1]; //last on the input list
for (var i in inputList) {
var e = inputList[i];
if (inside(e)) {
Cookies help us deliver our services. By using our services, you agree to our use of cookies.