Sutherland-Hodgman polygon clipping: Difference between revisions
Sutherland-Hodgman polygon clipping (view source)
Revision as of 20:07, 15 November 2022
, 1 year ago→{{header|RATFOR}}
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}}==
|