Jump to content

Sutherland-Hodgman polygon clipping: Difference between revisions

Line 4,317:
end
</syntaxhighlight>
{{out}}
<pre>(100.0000, 116.6667)
(125.0000, 100.0000)
(275.0000, 100.0000)
(300.0000, 116.6667)
(300.0000, 300.0000)
(250.0000, 300.0000)
(200.0000, 250.0000)
(175.0000, 300.0000)
(125.0000, 300.0000)
(100.0000, 250.0000)
Wrote sutherland-hodgman.eps</pre>
[[File:Sutherland-hodgman-from-ratfor.png|alt=The polygons as generated by Ratfor.]]
 
=={{header|Ruby}}==
1,448

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.