Ramer-Douglas-Peucker line simplification: Difference between revisions

(Added Algol 68)
Line 59:
{{trans|Go}}
<syntaxhighlight lang="algol68">
BEGIN # Ramer DouglasPeukerDouglas Peucker algotithm - translated from the Go sample #
 
MODE POINT = STRUCT( REAL x, y );
Line 74:
END # APPEND # ;
 
PROC rdp = ( []POINT l, REAL epsilon )[]POINT: # Ramer Douglas PeukerPeucker #
BEGIN # algorithm #
INT x := 0;
Line 97:
[]POINT( l[ LWB l ], l[ UPB l ] )
FI
END # ramer douglas peukerrdp # ;
 
OP FMT = ( REAL v )STRING: # formsts v with up to 2 decimals #
3,032

edits