Ramer-Douglas-Peucker line simplification: Difference between revisions
Content added Content deleted
Walterpachl (talk | contribs) (→{{header|REXX}}: add Version 2) |
Walterpachl (talk | contribs) m (→{{header|REXX}}: fix tags) |
||
Line 1,570: | Line 1,570: | ||
</pre> |
</pre> |
||
===Version 2=== |
===Version 2=== |
||
{{trans|ooRexx}} |
|||
⚫ | |||
<syntaxhighlight lang="rexx"> |
<syntaxhighlight lang="rexx"> |
||
/*REXX program uses the Ramer-Douglas-Peucker (RDP) line simplification algorithm for*/ |
/*REXX program uses the Ramer-Douglas-Peucker (RDP) line simplification algorithm for*/ |
||
Line 1,643: | Line 1,643: | ||
Numeric Digits prec |
Numeric Digits prec |
||
r=r+0 |
r=r+0 |
||
Return r |
Return r |
||
⚫ | |||
{{out|output|text= when using the default inputs:}} |
{{out|output|text= when using the default inputs:}} |
||
<pre> |
<pre> |